Skip to content

Commit f21af99

Browse files
committed
Update
1 parent 96ba7d3 commit f21af99

19 files changed

+183
-125
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 floatPHP
3+
Copyright (c) 2023 FloatPHP
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,33 @@
1-
# Kernel
2-
Framework Kernel Components
1+
# FloatPHP (Kernel)
2+
3+
<img src="https://www.floatphp.com/assets/img/floatphp.png" width="100" alt="Micro PHP framework">
4+
5+
FloatPHP **Kernel Components**.
6+
7+
## ⚡ Installing:
8+
9+
```
10+
composer require floatphp/kernel
11+
```
12+
13+
## Contributing:
14+
15+
Please read [CONTRIBUTING.md](https://github.com/floatphp/Kernel/blob/master/CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.
16+
17+
## Versioning:
18+
19+
We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/floatphp/Kernel/tags).
20+
21+
## Authors:
22+
23+
* **Jihad Sinnaour** - [Jakiboy](https://github.com/Jakiboy) (*Initial work*)
24+
25+
See also the full list of [contributors](https://github.com/floatphp/Kernel/contributors) who participated in this project. Any suggestions (Pull requests) are welcome!
26+
27+
## License:
28+
29+
This project is licensed under the MIT License - see the [LICENSE](https://github.com/floatphp/Kernel/blob/master/LICENSE) file for details.
30+
31+
## ⭐ Support:
32+
33+
Please give it a Star if you like the project.

composer.json

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "floatphp/kernel",
3-
"version" : "1.0.0",
3+
"version" : "1.0.1",
44
"type": "library",
5-
"description": "Kernel lib for floatPHP Framework",
5+
"description": "FloatPHP Kernel Components",
66
"keywords": ["php","micro-framework","framework","PSR","ORM","jakiboy","composer"],
77
"homepage": "https://www.floatphp.com/",
88
"license": "MIT",
@@ -22,14 +22,13 @@
2222
"php": ">=7.4",
2323
"ext-curl": "*",
2424
"ext-intl": "*",
25-
"twig/twig": "3.4.3",
26-
"phpfastcache/phpfastcache": "8.1.0",
27-
"justinrainbow/json-schema": "5.2.11",
28-
"floatphp/classes": "1.0.0",
29-
"floatphp/helpers": "1.0.0",
30-
"floatphp/interfaces": "1.0.0",
31-
"floatphp/exceptions": "1.0.0",
32-
"floatphp/cli": "1.0.0"
25+
"twig/twig": "^3.5.0",
26+
"justinrainbow/json-schema": "^5.2.12",
27+
"floatphp/classes": "^1.0.1",
28+
"floatphp/helpers": "^1.0.1",
29+
"floatphp/interfaces": "^1.0.1",
30+
"floatphp/exceptions": "^1.0.1",
31+
"floatphp/cli": "^1.0.1"
3332
},
3433
"autoload": {
3534
"psr-4" : {

src/AbstractAuthController.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
* @author : JIHAD SINNAOUR
44
* @package : FloatPHP
55
* @subpackage : Kernel Component
6-
* @version : 1.0.0
6+
* @version : 1.0.1
77
* @category : PHP framework
8-
* @copyright : (c) 2017 - 2022 Jihad Sinnaour <[email protected]>
8+
* @copyright : (c) 2017 - 2023 Jihad Sinnaour <[email protected]>
99
* @link : https://www.floatphp.com
1010
* @license : MIT
1111
*
@@ -18,7 +18,9 @@
1818

1919
use FloatPHP\Interfaces\Kernel\AuthenticationInterface;
2020
use FloatPHP\Classes\{
21-
Security\Password, Http\Session, Http\Request, Filesystem\Arrayify
21+
Http\Session, Http\Request,
22+
Security\Password,
23+
Filesystem\Arrayify
2224
};
2325

2426
abstract class AbstractAuthController extends BaseController

src/ApiController.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
* @author : JIHAD SINNAOUR
44
* @package : FloatPHP
55
* @subpackage : Kernel Component
6-
* @version : 1.0.0
6+
* @version : 1.0.1
77
* @category : PHP framework
8-
* @copyright : (c) 2017 - 2022 Jihad Sinnaour <[email protected]>
8+
* @copyright : (c) 2017 - 2023 Jihad Sinnaour <[email protected]>
99
* @link : https://www.floatphp.com
1010
* @license : MIT
1111
*
@@ -17,7 +17,9 @@
1717
namespace FloatPHP\Kernel;
1818

1919
use FloatPHP\Classes\{
20-
Http\Server, Security\Encryption, Filesystem\Stringify
20+
Http\Server,
21+
Security\Encryption,
22+
Filesystem\Stringify
2123
};
2224

2325
class ApiController extends BaseController

src/BackendController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
* @author : JIHAD SINNAOUR
44
* @package : FloatPHP
55
* @subpackage : Kernel Component
6-
* @version : 1.0.0
6+
* @version : 1.0.1
77
* @category : PHP framework
8-
* @copyright : (c) 2017 - 2022 Jihad Sinnaour <[email protected]>
8+
* @copyright : (c) 2017 - 2023 Jihad Sinnaour <[email protected]>
99
* @link : https://www.floatphp.com
1010
* @license : MIT
1111
*

src/Base.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
* @author : JIHAD SINNAOUR
44
* @package : FloatPHP
55
* @subpackage : Kernel Component
6-
* @version : 1.0.0
6+
* @version : 1.0.1
77
* @category : PHP framework
8-
* @copyright : (c) 2017 - 2022 Jihad Sinnaour <[email protected]>
8+
* @copyright : (c) 2017 - 2023 Jihad Sinnaour <[email protected]>
99
* @link : https://www.floatphp.com
1010
* @license : MIT
1111
*

src/BaseController.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
* @author : JIHAD SINNAOUR
44
* @package : FloatPHP
55
* @subpackage : Kernel Component
6-
* @version : 1.0.0
6+
* @version : 1.0.1
77
* @category : PHP framework
8-
* @copyright : (c) 2017 - 2022 Jihad Sinnaour <[email protected]>
8+
* @copyright : (c) 2017 - 2023 Jihad Sinnaour <[email protected]>
99
* @link : https://www.floatphp.com
1010
* @license : MIT
1111
*
@@ -229,7 +229,7 @@ protected function sanitizeRequest($verify = true, $force = false)
229229
*/
230230
protected function setResponse($message = '', $content = [], $status = 'success', $code = 200)
231231
{
232-
Response::set($this->translate($message),$content,$status,$code);
232+
Response::set($this->translate($message), $content, $status, $code);
233233
}
234234

235235
/**
@@ -242,6 +242,6 @@ protected function setResponse($message = '', $content = [], $status = 'success'
242242
*/
243243
protected function setHttpResponse($message = '', $content = [], $status = 'success', $code = 200)
244244
{
245-
Response::set($message,$content,$status,$code);
245+
Response::set($message, $content, $status, $code);
246246
}
247247
}

src/Core.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
* @author : JIHAD SINNAOUR
44
* @package : FloatPHP
55
* @subpackage : Kernel Component
6-
* @version : 1.0.0
6+
* @version : 1.0.1
77
* @category : PHP framework
8-
* @copyright : (c) 2017 - 2022 Jihad Sinnaour <[email protected]>
8+
* @copyright : (c) 2017 - 2023 Jihad Sinnaour <[email protected]>
99
* @link : https://www.floatphp.com
1010
* @license : MIT
1111
*

src/ErrorController.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
* @author : JIHAD SINNAOUR
44
* @package : FloatPHP
55
* @subpackage : Kernel Component
6-
* @version : 1.0.0
6+
* @version : 1.0.1
77
* @category : PHP framework
8-
* @copyright : (c) 2017 - 2022 Jihad Sinnaour <[email protected]>
8+
* @copyright : (c) 2017 - 2023 Jihad Sinnaour <[email protected]>
99
* @link : https://www.floatphp.com
1010
* @license : MIT
1111
*
@@ -32,19 +32,19 @@ public function __construct($code = 404, $error = null, $render = true)
3232
// Init configuration
3333
$this->initConfig();
3434

35-
$message = $this->applyFilter('error-message',Response::getMessage($code));
35+
$message = $this->applyFilter('error-message', Response::getMessage($code));
3636

3737
if ( !$error ) {
3838
$error = $message;
3939
}
4040

4141
if ( $render ) {
4242

43-
$type = $this->applyFilter('error-response-type','text/html;charset=utf-8');
44-
$template = $this->applyFilter('error-template','/system/error');
45-
$error = $this->applyFilter('error',$this->translate($error));
43+
$type = $this->applyFilter('error-response-type', 'text/html;charset=utf-8');
44+
$template = $this->applyFilter('error-template', '/system/error');
45+
$error = $this->applyFilter('error', $this->translate($error));
4646

47-
Response::setHttpHeaders($code,$type);
47+
Response::setHttpHeaders($code, $type);
4848
$this->render([
4949
'status' => $message,
5050
'code' => $code,
@@ -54,8 +54,8 @@ public function __construct($code = 404, $error = null, $render = true)
5454

5555
} else {
5656

57-
$args = $this->applyFilter('error-http-args',[]);
58-
Response::set($error,$args,'error',$code);
57+
$args = $this->applyFilter('error-http-args', []);
58+
Response::set($error, $args, 'error', $code);
5959
}
6060
}
6161
}

0 commit comments

Comments
 (0)