Download the PHP package tourze/biz-role-bundle without Composer

On this page you can find all versions of the php package tourze/biz-role-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 biz-role-bundle

BizRoleBundle

PHP Version Symfony Version

中文

A Symfony bundle for managing business roles and permissions with entity-level access control.

Table of Contents

Requirements

Installation

Enable the bundle in your config/bundles.php:

Features

Configuration

Entity Mapping

The bundle provides two main entities:

  1. BizRole - Represents a system role
  2. RoleEntityPermission - Defines entity-level data permissions

Database Schema

Run migrations to create the required tables:

This creates two tables:

Usage

Creating Roles

Entity-Level Permissions

Define data access rules for specific entities:

Admin Interface

The bundle provides EasyAdmin controllers:

  1. BizRoleCrudController - Manage roles
  2. RoleEntityPermissionCrudController - Manage entity permissions

Register them in your EasyAdmin dashboard:

Permission Checking

Roles can be assigned to users and checked using Symfony Security:

Features

Role Properties

Entity Permission Properties

Tracking Features

All entities include:

Events

The bundle integrates with Doctrine events for tracking changes. All modifications are automatically logged with user and timestamp information.

Advanced Usage

Role Hierarchy

Roles can inherit permissions from other roles:

Complex Entity Permissions

Use parameterized queries for dynamic filtering:

Custom Permission Checks

Implement custom permission logic in your security voters:

Security Considerations

  1. SQL Injection: Entity permission statements should be parameterized
  2. Role Validation: Ensure roles are validated before assignment
  3. Permission Caching: Consider caching permission checks for performance
  4. Audit Trail: All changes are tracked for security auditing

Testing

Run the test suite:

Code Coverage

Generate test coverage report:

License

This bundle is available under the MIT License. See the LICENSE file for details.


All versions of biz-role-bundle with dependencies

PHP Build Version
Package Version
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 tourze/biz-role-bundle contains the following files

Loading the files please wait ...