johnnickell / fight-access-control
Framework-neutral identity, credential, session, authorization, and account-lifecycle contracts
Package info
github.com/johnnickell/fight-access-control
pkg:composer/johnnickell/fight-access-control
Requires
- php: >=8.5
- johnnickell/fight-common: ^1.5.1
- psr/http-message: ^2.0
- psr/http-server-middleware: ^1.0
Requires (Dev)
- codeigniter4/framework: ^4.7.6
- deptrac/deptrac: ^4.7
- doctrine/dbal: ^4.4
- laravel/framework: ^13.40.0
- nikic/php-parser: ^5.9
- opis/json-schema: ^2.6
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^13.0
- rector/rector: ^2.4
- slevomat/coding-standard: ^8.27
- slim/psr7: ^1.8
- slim/slim: ^4.15.3
- squizlabs/php_codesniffer: ^4.0
- symfony/event-dispatcher: ^8.1.5
- symfony/http-foundation: ^8.1.11
- symfony/http-kernel: ^8.1.11
- symfony/mercure: ^0.7
- symfony/process: ^7.0
- symfony/routing: ^8.1.11
- symfony/security-http: ^8.1.11
- yiisoft/di: ^1.4.1
- yiisoft/injector: ^1.2.2
- yiisoft/middleware-dispatcher: ^5.4
- yiisoft/router: ^4.0.2
- yiisoft/router-fastroute: ^4.0.3
- zircote/swagger-php: ^6.5
Suggests
- codeigniter4/framework: Enable explicit native CodeIgniter 4 Permission or Feature admission and safe JSON errors (^4.7.6).
- laravel/framework: Enable explicit native Laravel Permission or Feature middleware and Common safe handler (^13.40.0).
- slim/slim: Enable the optional Slim permission target integration (^4.15.3).
- symfony/event-dispatcher: Enable explicit native Symfony Permission or Feature admission (^8.1.5).
- symfony/http-foundation: Enable native Symfony/Laravel requests and safe JSON responses (^8.1.11).
- symfony/http-kernel: Enable native Symfony admission and Laravel HTTP failures (^8.1.11).
- symfony/mercure: Enable explicitly composed Common public/private notice publishers (^0.7).
- symfony/routing: Enable trusted native Symfony Permission or Feature target matching (^8.1.11).
- symfony/security-http: Optionally compose native IsGranted attributes after permission admission (^8.1.11).
- yiisoft/router: Enable the optional Yii 3 permission target integration (^4.0.2).
- zircote/swagger-php: Generate a consumer-owned OpenAPI document from the opt-in openapi/ component catalog.
Provides
None
Conflicts
None
Replaces
None
README
Fight AccessControl
Framework-neutral identity and authorization for PHP. Manage User accounts, Agent credentials, sessions, Roles and Permissions while keeping control of your application's infrastructure.
Install · Get started · Capabilities · Framework setup · Consumer docs
Release and installation
Release: v0.11.0
Status: published.
Requires PHP 8.5+ and Fight Common ^1.5.1 (resolved by Composer).
composer require johnnickell/fight-access-control:"~0.11.0"
Release overview · Tagged documentation
Use documentation from the tag matching your installed version. Repository guides describe the checkout and may include unreleased changes. The install constraint stays on this minor line. Pre-v1 minors can break API and persistence contracts; read the Changelog and the appropriate release overview before upgrading.
Integrate with your application
Follow installation and first use to wire a capability and choose an entry point. The package provides business rules and optional adapters, not endpoints, a database schema, a login UI, or production configuration. Your app owns persistence, wiring, and admission at its entry points.
Choose a capability
Start with Users and sessions, browse Agents, Roles, Permissions, Feature flags and OpenAPI, or go straight to framework setup for Slim, Yii 3, Symfony, Laravel, or CodeIgniter 4.
Released in v0.9.0
See the v0.9.0 integration overview for atomic audit, HTTP admission, and breaking changes.
Released in v0.8.0
See the v0.8.0 integration overview for Role revisions and recovery changes.
Development and contributions
See Contributing for local setup, builds, and review.
Releases
See the release runbook for version preparation and verification.
Security and license
Report suspected vulnerabilities privately through SECURITY.md. The package uses the MIT License.