The AuthBundle offers possibility to manage user access to resource using routes
It's compatible with Doctrine ORM for MySQL database.
This bundle is under the MIT license. See the complete license in the bundle:
LICENSE
Open composer.json
file and add
"repositories": [
{
"type": "vcs",
"url": "https://github.com/darijuxs/AuthBundle.git"
}
],
Run command to install required bundle.
composer require bs/auth "1.0.*"
This command requires you to have Composer installed globally, as explained
in the installation chapter
of the Composer documentation.
Then, enable the bundle by adding it to the list of registered bundles
in the app/AppKernel.php
file of your project:
<?php
// app/AppKernel.php
// ...
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ...
new AuthBundle\AuthBundle(),
);
// ...
}
// ...
}
RAPIBundle use custom format to return JSON response
<?php
// Entity/User/User.php
// ...
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ...
new AuthBundle\AuthBundle(),
);
// ...
}
// ...
}
- Version 1.0.0
Init project