PHPackages                             alchemy/acl-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. alchemy/acl-bundle

ActiveSymfony-bundle[Authentication &amp; Authorization](/categories/authentication)

alchemy/acl-bundle
==================

Symfony ACL bundle

1.0.0(1y ago)48.5k1MITPHPPHP ^8.2CI passing

Since Sep 9Pushed 3mo ago4 watchersCompare

[ Source](https://github.com/alchemy-fr/acl-bundle)[ Packagist](https://packagist.org/packages/alchemy/acl-bundle)[ Docs](https://www.alchemy.fr/)[ RSS](/packages/alchemy-acl-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (11)Versions (7)Used By (0)

Alchemy ACL bundle
==================

[](#alchemy-acl-bundle)

Installation
------------

[](#installation)

Project configuration
---------------------

[](#project-configuration)

Add the entities you want to extend with ACL:

```
# config/packages/alchemy_acl.yaml
alchemy_acl:
  objects:
    publication: App\Entity\Publication
    asset: App\Entity\Asset
```

Then you must alias your UserRepository service:

```
# config/services.yaml
services:
    Alchemy\AclBundle\Repository\UserRepositoryInterface: '@App\Repository\UserRepository'
```

Add redis cache for access token:

```
# config/packages/cache.yaml
framework:
    cache:
        default_redis_provider: redis://redis
        pools:
            accessToken.cache: # You must use this name for auto wiring
                adapter: cache.adapter.redis
```

API
---

[](#api)

### Definitions

[](#definitions)

- `userType`Can be `user` or `group`
- `userId`The user ID or the group ID (depending on the `userType`). If the value is NULL, then the ACE allows everybody.
- `objectType`Depending on the application. Rely on the object you have defined:

```
alchemy_acl:
  objects:
    publication: App\Entity\Publication
    asset: App\Entity\Asset
```

In this application, `objectType` can be either `publication` or `asset`.

- `objectId`If the value is NULL, then the ACE is apply to all objects of this `objectType`.

### Endpoints

[](#endpoints)

This bundle exposes the following routes to the application:

- `GET /permissions/aces` Get access control entries (ACEs) Available query filters:
- `userType` (`user` or `group`)
- `userId`
- `objectType`
- `objectId`

Examples:

```
# List all ACEs of an object
curl {HOST}/permissions/aces?objectType=publication&objectId=pub-42

# List all ACEs of a group
curl {HOST}/permissions/aces?userType=group&userId=g-42

# List all ACEs of a user
curl {HOST}/permissions/aces?userType=user&userId=u-42

# List all ACEs of a user on an object
curl {HOST}/permissions/aces?userType=user&userId=u-42&objectType=publication&objectId=pub-42
```

---

- `PUT /permissions/ace` Add or update access control entry (ACE)

You must provide the following body:

```
{
    "userType": "user",
    "userId": "the-user-id",
    "objectType": "publication",
    "objectId": "the-publication-id",
    "mask": 7
}
```

---

- `DELETE /permissions/ace` Remove access control entry (ACE)

```
{
    "userType": "user",
    "userId": "the-user-id",
    "objectType": "publication",
    "objectId": "the-publication-id"
}
```

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance62

Regular maintenance activity

Popularity29

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~218 days

Total

5

Last Release

474d ago

Major Versions

0.2.1 → 1.0.02025-01-29

PHP version history (3 changes)0.1.0PHP ^7.4 || ^8.0

0.2.0PHP ^7.4|^8.0

0.2.1PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/ee4bb6d5bcc2f9456b41090151c1c8fb288e8949994d965b03b7e25648d663f4?d=identicon)[nmaillat](/maintainers/nmaillat)

![](https://www.gravatar.com/avatar/29e6fbd71f09a99d914808c6f8657bdcee975fad50d8316328a4b7647f1e8136?d=identicon)[jygaulier](/maintainers/jygaulier)

![](https://www.gravatar.com/avatar/9fe8c4863be9b3f65f3481590d9cf4e57b40c85026ccc00ebf4c787c0a27b53c?d=identicon)[moctardiouf](/maintainers/moctardiouf)

![](https://www.gravatar.com/avatar/c83d7d62f8cb81f94914c46dea1a897d48ae9f1ada66d47005df16f2af4b516b?d=identicon)[arthem](/maintainers/arthem)

---

Top Contributors

[![4rthem](https://avatars.githubusercontent.com/u/2180032?v=4)](https://github.com/4rthem "4rthem (50 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisRector

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/alchemy-acl-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/alchemy-acl-bundle/health.svg)](https://phpackages.com/packages/alchemy-acl-bundle)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[kimai/kimai

Kimai - Time Tracking

4.6k7.4k1](/packages/kimai-kimai)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
