exs / silex-request-provider
Request bundle for Silex2
Installs: 1 014
Dependents: 1
Suggesters: 0
Security: 0
Stars: 3
Watchers: 10
Forks: 0
Open Issues: 0
Requires
- silex/silex: ~2.0@dev
This package is auto-updated.
Last update: 2024-12-29 04:41:53 UTC
README
Installing the RequestProvider in a Silex project
The installation process is actually very simple. Set up a Silex project with Composer.
Once the new project is set up, open the composer.json file and add the exs/silex-request-provider as a dependency:
//composer.json //... "require": { //other bundles "exs/silex-request-provider": "dev-master"
Or you could just add it via the command line:
$ composer.phar require exs/silex-request-provider : dev-master
Save the file and have composer update the project via the command line:
php composer.phar update
Composer will now update all dependencies and you should see our bundle in the list:
- Installing exs/silex-request-provider (dev-master 463eb20) Cloning 463eb2081e7205e7556f6f65224c6ba9631e070a
Update the app.php to include our provider:
//app.php //... $app->register(new \EXS\RequestProvider\Providers\RequestProvider());
and now you're done.
You can access the current request by calling:
$app['exs.serv.request']->getRequest();
Contributing
Anyone and everyone is welcome to contribute.
If you have any questions or suggestions please let us know.