Skip to content

Commit

Permalink
Merge pull request #51 from Uxie-Framework/reorganize-framework-direc…
Browse files Browse the repository at this point in the history
…torys

update readme and composer files
  • Loading branch information
M.Amine Cheribet authored Mar 8, 2018
2 parents f883fdc + a5fa3d7 commit 75d7b35
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 48 deletions.
17 changes: 12 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ GET, POST, PUT, PATCH, DELETE
To use PUT, PATCH, DELETE methods your form method must be 'POST'
inside the form you must put:
```<input type='hidden' name='_method' value="PUT'>```
csrf_method('PUT') will echo this automatically.
csrf_method('PUT') will echo this automatically.

#### Basic routes examples:
```php
Expand Down Expand Up @@ -261,7 +261,7 @@ contaienr()->MyClass->someMethod();

#### IOC Service Provider:

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

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

#### The global $container:

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



Expand Down Expand Up @@ -414,11 +414,18 @@ container();
## Box (Command Line Tool):
Box is a command line tool to create Controllers, models & middlewares templates
for example:
```
// to create a controller:
php box Controller TestC
// or
// to create resourceful controller
php box Controller TestC -r
// to create a Model
php box Model TestC
// or
// to create a Middleware
php box Middleware TestC
```
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"uxie/validator": ">=0.2",
"uxie/kernel": ">=0.2.3",
"uxie/authenticator": ">=0.2",
"uxie/box": ">=0.2.1",
"uxie/services": ">=0.1.4",
"uxie/box": ">=0.2.2",
"uxie/services": ">=0.1.5",
"vlucas/phpdotenv": ">=2.4",
"mohamed-amine/file-uploader": ">=1.1",
"mohamed-amine/ioc-container": ">=0.4",
Expand Down
82 changes: 41 additions & 41 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 75d7b35

Please sign in to comment.