Skip to content

Commit 75d7b35

Browse files
author
M.Amine Cheribet
authored
Merge pull request #51 from Uxie-Framework/reorganize-framework-directorys
update readme and composer files
2 parents f883fdc + a5fa3d7 commit 75d7b35

File tree

3 files changed

+55
-48
lines changed

3 files changed

+55
-48
lines changed

README.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ GET, POST, PUT, PATCH, DELETE
4141
To use PUT, PATCH, DELETE methods your form method must be 'POST'
4242
inside the form you must put:
4343
```<input type='hidden' name='_method' value="PUT'>```
44-
csrf_method('PUT') will echo this automatically.
44+
csrf_method('PUT') will echo this automatically.
4545

4646
#### Basic routes examples:
4747
```php
@@ -261,7 +261,7 @@ contaienr()->MyClass->someMethod();
261261

262262
#### IOC Service Provider:
263263

264-
Service provider located in ```App/Services.php```
264+
Service provider located in ```App/Services.php```
265265
It contains aliases and sevices that should be loaded when the application start:
266266

267267
```php
@@ -282,7 +282,7 @@ It contains aliases and sevices that should be loaded when the application start
282282

283283
#### The global $container:
284284

285-
the ```container()```function is global in the framework (can be used every where, it contains all the objects created by the IOC container),
285+
the ```container()```function is global in the framework (can be used every where, it contains all the objects created by the IOC container),
286286

287287

288288

@@ -414,11 +414,18 @@ container();
414414
## Box (Command Line Tool):
415415
Box is a command line tool to create Controllers, models & middlewares templates
416416
for example:
417+
417418
```
419+
// to create a controller:
418420
php box Controller TestC
419-
// or
421+
422+
// to create resourceful controller
423+
php box Controller TestC -r
424+
425+
// to create a Model
420426
php box Model TestC
421-
// or
427+
428+
// to create a Middleware
422429
php box Middleware TestC
423430
```
424431

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"uxie/validator": ">=0.2",
1515
"uxie/kernel": ">=0.2.3",
1616
"uxie/authenticator": ">=0.2",
17-
"uxie/box": ">=0.2.1",
18-
"uxie/services": ">=0.1.4",
17+
"uxie/box": ">=0.2.2",
18+
"uxie/services": ">=0.1.5",
1919
"vlucas/phpdotenv": ">=2.4",
2020
"mohamed-amine/file-uploader": ">=1.1",
2121
"mohamed-amine/ioc-container": ">=0.4",

composer.lock

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

0 commit comments

Comments
 (0)