Skip to content

Commit 683a02f

Browse files
committed
updated composer.json and README.md
1 parent d2b9d7c commit 683a02f

File tree

3 files changed

+34
-22
lines changed

3 files changed

+34
-22
lines changed

README.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Lion-PHP
22
Framework for PHP in order to make the code cleaner and simpler.
33

4-
[![Latest Stable Version](http://poser.pugx.org/lion-framework/lion-backend/v)](https://packagist.org/packages/lion-framework/lion-backend) [![Total Downloads](http://poser.pugx.org/lion-framework/lion-backend/downloads)](https://packagist.org/packages/lion-framework/lion-backend) [![License](http://poser.pugx.org/lion-framework/lion-backend/license)](https://packagist.org/packages/lion-framework/lion-backend) [![PHP Version Require](http://poser.pugx.org/lion-framework/lion-backend/require/php)](https://packagist.org/packages/lion-framework/lion-backend)
4+
[![Latest Stable Version](http://poser.pugx.org/lion-framework/lion-php/v)](https://packagist.org/packages/lion-framework/lion-php) [![Total Downloads](http://poser.pugx.org/lion-framework/lion-php/downloads)](https://packagist.org/packages/lion-framework/lion-php) [![License](http://poser.pugx.org/lion-framework/lion-php/license)](https://packagist.org/packages/lion-framework/lion-php) [![PHP Version Require](http://poser.pugx.org/lion-framework/lion-php/require/php)](https://packagist.org/packages/lion-framework/lion-php)
55

66
## Install
77
```
@@ -149,9 +149,9 @@ Execute an HTTP request to a route where it generates the respective keys.
149149

150150
```php
151151
use LionSecurity\RSA;
152-
use LionFunctions\FILES;
152+
use LionFiles\FILES;
153153

154-
Route::post('/', function() {
154+
Route::post('key', function() {
155155
FILES::folder('path');
156156
RSA::createKeys('path');
157157

@@ -160,6 +160,18 @@ Route::post('/', function() {
160160
'message' => 'Keys created successfully.'
161161
];
162162
});
163+
164+
// or
165+
166+
Route::post('key', function() {
167+
FILES::folder('resources/secret/');
168+
RSA::createKeys();
169+
170+
return [
171+
'status' => 'success',
172+
'message' => 'Keys created successfully.'
173+
];
174+
});
163175
```
164176

165177
## Credits

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
],
1717
"require": {
1818
"php": ">=8.0.9",
19-
"lion-framework/lion-sql": "^1.8",
20-
"lion-framework/lion-route": "^1.5",
21-
"lion-framework/lion-mailer": "^1.2",
22-
"lion-framework/lion-security": "^3.0",
23-
"lion-framework/lion-files": "^2.0",
24-
"vlucas/phpdotenv": "^5.4"
19+
"vlucas/phpdotenv": "^5.4",
20+
"lion-framework/lion-sql": "^1.9",
21+
"lion-framework/lion-route": "^1.6",
22+
"lion-framework/lion-mailer": "^1.4",
23+
"lion-framework/lion-security": "^4.0",
24+
"lion-framework/lion-files": "^3.0"
2525
}
2626
}

composer.lock

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)