Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
- Licensing
  • Loading branch information
Jakiboy committed Jan 15, 2024
1 parent 5cb130d commit 6ad2deb
Show file tree
Hide file tree
Showing 10 changed files with 45 additions and 58 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 FloatPHP
Copyright (c) 2024 FloatPHP

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# FloatPHP (CLI)

<img src="https://www.floatphp.com/assets/img/floatphp.png" width="100" alt="Micro PHP framework">
<img src="https://floatphp.com/assets/img/floatphp.png" width="100" alt="Micro PHP framework">

FloatPHP **CLI Components**.
This components used to setup CLI application.

## ⚡ Installing:

Expand Down
11 changes: 5 additions & 6 deletions bin/floatphp
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<?php
/**
* @author : JIHAD SINNAOUR
* @author : Jakiboy
* @package : FloatPHP
* @subpackage : CLI Component
* @version : 1.0.2
* @category : PHP framework
* @copyright : (c) 2017 - 2023 Jihad Sinnaour <[email protected]>
* @link : https://www.floatphp.com
* @version : 1.1.0
* @copyright : (c) 2018 - 2024 Jihad Sinnaour <[email protected]>
* @link : https://floatphp.com
* @license : MIT
*
* This file if a part of FloatPHP Framework.
Expand All @@ -16,7 +15,7 @@ declare(strict_types=1);

namespace App;

if (php_sapi_name() !== 'cli') exit;
if (php_sapi_name() !== 'cli') exit();

require( __DIR__ . '/App/App.php');
new App();
Expand Down
15 changes: 7 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
{
"name": "floatphp/cli",
"version" : "1.0.2",
"version" : "1.1.0",
"type": "library",
"description": "FloatPHP CLI Components",
"keywords": ["floatphp","micro-framework","framework","PSR","ORM","jakiboy"],
"homepage": "https://www.floatphp.com/",
"homepage": "https://floatphp.com",
"license": "MIT",
"authors": [
{
"name": "Jihad Sinnaour",
"email": "[email protected]",
"role": "Founder"
},
{
"name": "Softgine",
"email": "[email protected]",
"role": "Developer"
}
],
"require": {
"php": ">=7.4"
"php": ">=7.4",
"floatphp/classes": "^1.1.0",
"floatphp/helpers": "^1.1.0",
"floatphp/interfaces": "^1.1.0",
"floatphp/exceptions": "^1.1.0"
},
"autoload": {
"psr-4" : {
Expand Down
12 changes: 5 additions & 7 deletions src/App.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<?php
/**
* @author : JIHAD SINNAOUR
* @author : Jakiboy
* @package : FloatPHP
* @subpackage : CLI Component
* @version : 1.0.2
* @category : PHP framework
* @copyright : (c) 2017 - 2023 Jihad Sinnaour <[email protected]>
* @link : https://www.floatphp.com
* @version : 1.1.0
* @copyright : (c) 2018 - 2024 Jihad Sinnaour <[email protected]>
* @link : https://floatphp.com
* @license : MIT
*
* This file if a part of FloatPHP Framework.
Expand All @@ -19,8 +18,7 @@
class App
{
/**
* @param void
* @return void
* Setup CLI App.
*/
public function __construct()
{
Expand Down
10 changes: 4 additions & 6 deletions src/BuiltIn.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<?php
/**
* @author : JIHAD SINNAOUR
* @author : Jakiboy
* @package : FloatPHP
* @subpackage : CLI Component
* @version : 1.0.2
* @category : PHP framework
* @copyright : (c) 2017 - 2023 Jihad Sinnaour <[email protected]>
* @link : https://www.floatphp.com
* @version : 1.1.0
* @copyright : (c) 2018 - 2024 Jihad Sinnaour <[email protected]>
* @link : https://floatphp.com
* @license : MIT
*
* This file if a part of FloatPHP Framework.
Expand All @@ -24,7 +23,6 @@ class BuiltIn
{
/**
* @access public
* @param void
* @return string
*/
public function help()
Expand Down
13 changes: 5 additions & 8 deletions src/Console.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<?php
/**
* @author : JIHAD SINNAOUR
* @author : Jakiboy
* @package : FloatPHP
* @subpackage : CLI Component
* @version : 1.0.2
* @category : PHP framework
* @copyright : (c) 2017 - 2023 Jihad Sinnaour <[email protected]>
* @link : https://www.floatphp.com
* @version : 1.1.0
* @copyright : (c) 2018 - 2024 Jihad Sinnaour <[email protected]>
* @link : https://floatphp.com
* @license : MIT
*
* This file if a part of FloatPHP Framework.
Expand All @@ -27,7 +26,6 @@ class Console extends BuiltIn
protected $registry = [];

/**
* @param void
* @return void
*/
public function __construct()
Expand All @@ -37,7 +35,6 @@ public function __construct()

/**
* @access public
* @param void
* @return object
*/
public function getOutput()
Expand All @@ -59,7 +56,7 @@ public function registerCommand($command, $callable)
/**
* @access public
* @param string $command
* @return bool
* @return mixed
*/
public function getCommand($command)
{
Expand Down
10 changes: 4 additions & 6 deletions src/Output.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<?php
/**
* @author : JIHAD SINNAOUR
* @author : Jakiboy
* @package : FloatPHP
* @subpackage : CLI Component
* @version : 1.0.2
* @category : PHP framework
* @copyright : (c) 2017 - 2023 Jihad Sinnaour <[email protected]>
* @link : https://www.floatphp.com
* @version : 1.1.0
* @copyright : (c) 2018 - 2024 Jihad Sinnaour <[email protected]>
* @link : https://floatphp.com
* @license : MIT
*
* This file if a part of FloatPHP Framework.
Expand All @@ -30,7 +29,6 @@ public function out($message)

/**
* @access public
* @param void
* @return string
*/
public function newline()
Expand Down
14 changes: 6 additions & 8 deletions src/bin/controller
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<?php
/**
* @author : JIHAD SINNAOUR
* @package : FloatPHP Skeleton App
* @subpackage : Skeleton Controllers
* @version : 1.0.2
* @category : PHP framework
* @copyright : (c) 2017 - 2021 JIHAD SINNAOUR <[email protected]>
* @link : https://www.floatphp.com
* @author : Jakiboy
* @package : FloatPHP
* @subpackage : Skeleton Component
* @version : 1.1.0
* @copyright : (c) 2018 - 2024 Jihad Sinnaour <[email protected]>
* @link : https://floatphp.com
* @license : MIT
*
* This file if a part of FloatPHP Framework.
Expand All @@ -22,7 +21,6 @@ class {name}Controller extends {parent}Controller
* {routeName} : {method} {route}
*
* @access public
* @param void
* @return void
*/
public function {action}({params})
Expand Down
13 changes: 6 additions & 7 deletions src/bin/model
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<?php
/**
* @author : JIHAD SINNAOUR
* @package : FloatPHP Skeleton App
* @subpackage : Skeleton Models
* @version : 1.0.2
* @category : PHP framework
* @copyright : (c) 2017 - 2021 JIHAD SINNAOUR <[email protected]>
* @link : https://www.floatphp.com
* @author : Jakiboy
* @package : FloatPHP
* @subpackage : Skeleton Component
* @version : 1.1.0
* @copyright : (c) 2018 - 2024 Jihad Sinnaour <[email protected]>
* @link : https://floatphp.com
* @license : MIT
*
* This file if a part of FloatPHP Framework.
Expand Down

0 comments on commit 6ad2deb

Please sign in to comment.