-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Licensing
- Loading branch information
Showing
10 changed files
with
45 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
@@ -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(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" : { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
@@ -19,8 +18,7 @@ | |
class App | ||
{ | ||
/** | ||
* @param void | ||
* @return void | ||
* Setup CLI App. | ||
*/ | ||
public function __construct() | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
@@ -24,7 +23,6 @@ class BuiltIn | |
{ | ||
/** | ||
* @access public | ||
* @param void | ||
* @return string | ||
*/ | ||
public function help() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
@@ -27,7 +26,6 @@ class Console extends BuiltIn | |
protected $registry = []; | ||
|
||
/** | ||
* @param void | ||
* @return void | ||
*/ | ||
public function __construct() | ||
|
@@ -37,7 +35,6 @@ public function __construct() | |
|
||
/** | ||
* @access public | ||
* @param void | ||
* @return object | ||
*/ | ||
public function getOutput() | ||
|
@@ -59,7 +56,7 @@ public function registerCommand($command, $callable) | |
/** | ||
* @access public | ||
* @param string $command | ||
* @return bool | ||
* @return mixed | ||
*/ | ||
public function getCommand($command) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
@@ -30,7 +29,6 @@ public function out($message) | |
|
||
/** | ||
* @access public | ||
* @param void | ||
* @return string | ||
*/ | ||
public function newline() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
@@ -22,7 +21,6 @@ class {name}Controller extends {parent}Controller | |
* {routeName} : {method} {route} | ||
* | ||
* @access public | ||
* @param void | ||
* @return void | ||
*/ | ||
public function {action}({params}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|