rollerworks / multi-user-bundle
Multi user management for the FOSUserBundle
Installs: 11 909
Dependents: 0
Suggesters: 0
Security: 0
Stars: 57
Watchers: 8
Forks: 22
Type:symfony-bundle
Requires
- php: >=5.3.3
- friendsofsymfony/user-bundle: ~2.0@dev,>2.0.0-alpha1
- ocramius/proxy-manager: ~0.4
- rollerworks/sf-container-injector: ~1.0
- symfony/finder: ~2.3
- symfony/framework-bundle: ~2.3
- symfony/proxy-manager-bridge: ~2.3
Requires (Dev)
- doctrine/doctrine-bundle: ~1.2
- doctrine/orm: ~2.2,>=2.2.3
- matthiasnoback/symfony-config-test: 0.*,>=0.1.1
- sensio/generator-bundle: ~2.3
- swiftmailer/swiftmailer: >=4.3,<6.0
- symfony/browser-kit: ~2.3
- symfony/css-selector: ~2.3
- symfony/expression-language: ~2.4
- symfony/monolog-bundle: ~2.3
- symfony/process: ~2.3
- symfony/swiftmailer-bundle: ~2.3
- symfony/twig-bundle: ~2.3
- symfony/validator: ~2.3
- symfony/web-profiler-bundle: ~2.3
- symfony/yaml: ~2.3
- twig/twig: ~1.5
Conflicts
This package is not auto-updated.
Last update: 2022-02-01 12:26:16 UTC
README
!! MAINTAINERS WANTED !!
This project is no longer actively maintained! If you would like to takeover this project please leave a comment in: https://github.com/rollerworks/RollerworksMultiUserBundle/issues/96
The RollerworksMultiUserBundle adds support for a multi-user set-up using the FOSUserBundle. It provides a fully compatible in-place replacement for the 'fos_user' services.
In practice it is build on-top of the FOSUserBundle, and uses the original controllers, forms and UserManager.
Features include:
- Fully compatible with existing bundles that already use the FOSUserBundle
- Unlimited user-systems, each with there own configuration, storage engine, templates, forms, etc.
- Easy generation of new user-systems
- Unit tested
Caution: This bundle is developed in sync with FOSUserBundle's repository. For FOSUserBundle 2.0.x, you need to use the 1.0 release of the bundle (or lower).
As the FOSUserBundle 2.0 is not stable yet, multi-user support is considered experimental!
Warning: This bundle can not be used in combination with the PUGXMultiUserBundle. If the PUGXMultiUserBundle is installed, then please remove it before continuing.
Documentation
The bulk of the documentation is stored in the doc/index.md
file in this bundle:
Read the Documentation for master
Installation
All the installation instructions are located in documentation.
License
This bundle is released under the MIT license. See the bundled LICENSE file for details.
About
RollerworksMultiUserBundle was designed as an alternative to the PUGXMultiUserBundle.
A major difference to the PUGXMultiUserBundle is that RollerworksMultiUserBundle does not use Doctrine ORM Joined-Entity inheritance and provides a richer set of features.
Reporting an issue or a feature request
Issues and feature requests are tracked in the Github issue tracker.
When reporting a bug, it may be a good idea to reproduce it in a basic project built using the Symfony Standard Edition to allow developers of the bundle to reproduce the issue by simply cloning it and following some steps.
For opening a PR please use Gush so the information template is included.
Credits
The original idea of the UserDiscriminator came from the PUGXMultiUserBundle.
A major difference to the PUGXMultiUserBundle is as that RollerworksMultiUserBundle does not use Doctrine ORM Joined-Entity inheritance and every user-manager is accessible without 'discriminating'.
This bundle contains source originally designed by the FOSUserBundle developers.
Running the Tests
Before running the tests, you will need to install the bundle dependencies. Do this using composer:
The doctrine/mongodb-odm is required for functional tests but are not installed by default as it fails with some of the automated code analyzers.
$ php composer.phar composer require doctrine/mongodb-odm:"1.0.*@dev" --no-update $ php composer.phar composer require doctrine/mongodb-odm-bundle:"3.0.*@dev" --no-update $ php composer.phar --dev install
Then you can launch phpunit (make sure its installed https://github.com/sebastianbergmann/phpunit/#installation)
Using the Composer version of PHPUnit currently fails so make sure to either use the Phar archive or PEAR version. You need at least version 3.6 of PHPUnit and MockObject plugin 1.0.8
$ phpunit -c phpunit.xml.dist
Note: Functional test are not run by default, to run all tests make sure both PDO_SQLite and the PHP extension for MongoDB are installed, and launch phpunit with:
$ bin/phpunit -c phpunit.xml.dist --exclude-group ""
Optionally you may skip the functional tests as these are always run automatically on Travis-CI when opening a Pull Request.