Download the PHP package spomky-labs/role-hierarchy-bundle without Composer

On this page you can find all versions of the php package spomky-labs/role-hierarchy-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package role-hierarchy-bundle

Role Hierarchy

Scrutinizer Quality Score Build Status HHVM Status

SensioLabsInsight

Latest Stable Version Total Downloads Latest Unstable Version License

Prerequisites

This version of the bundle requires:

It has been successfully tested using PHP 5.6 to PHP 7.0 and HHVM under Symfony 2.8 to 3.0.

Installation

Installation is a quick 4 steps process:

Step 1: Install the bundle

The preferred way to install this bundle is to rely on Composer:

Step 2: Enable the bundle

Finally, enable the bundle in the kernel:

Step 3: Create model class

This bundle needs to persist roles to a database:

Your first job, then, is to create a role class for your application. This class can look and act however you want: add any properties or methods you find useful.

There is just a few requirements:

In the following sections, you'll see an example of how your class should look.

Your class can live inside any bundle in your application. For example, if you work at "Acme" company, then you might create a bundle called AcmeRoleBundle and place your classs in it.

This bundle is able to support Doctrine ORM, ODM, CouchDB or MongoDB. Please note that only ORM has been tested.

Doctrine ORM

If you are persisting your data via the Doctrine ORM, then your class should live in the Entity namespace of your bundle and look like this to start:

Doctrine ODM

To be written

Couch DB

To be written

Mongo DB

To be written

Step 4: Configure your application

If you have your own roles manager, you can use it. It just needs to implement SpomkyLabs\RoleHierarchyBundle\Model\RoleManagerInterface.


All versions of role-hierarchy-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6
symfony/security-bundle Version ^2.8|^3.0
doctrine/doctrine-bundle Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package spomky-labs/role-hierarchy-bundle contains the following files

Loading the files please wait ....