Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Php Abac Laravel Package

craftcamp/php-abac

Attribute-based access control (ABAC) for PHP apps. Define policies using attributes and evaluate permissions based on user, resource, action, and context. Framework-agnostic with a simple API, suited for fine-grained authorization beyond roles.

View on GitHub
Deep Wiki
Context7
3.0.0

Added

  • Abac class dependency injection
  • Abac factory
  • Support of PHP 7.x

Changed

  • Repository ownership

Removed

  • Support of PHP 5.x
2.1.2

Added

  • Support of Symfony 4 components

Fixed

  • Code style (PSR-2 compliant)
2.1.1

Added

  • JSON configuration file compatibility
  • Using Symfony Locator for configuration file
  • Multiple Set of Rules for an unique Rule name
  • Allow simple configuration by include file ( via @import attribute )
  • Allow to specify getter prefix (default = get ) and method to apply on getter name method instead of ucfist(default)
  • Allow addional parameters for getters in config file.
2.1.0

Added

  • Text cache driver
  • Cache folder configuration for cache files
  • Resource field comparison refering to user attribute
  • User field comparison refering to resource attribute

Changed

  • Auxiliary comparisons made by a comparison class does not generate rejected attributes anymore
2.0.3

Changed

  • The comparison manager handles dynamic attributes instead of ABAC class
  • The comparison manager handles rejected attributes and result instead of ABAC class

Fixed

  • Chained attributes can return null in case of unset object in the chain
  • Dynamic attributes for contained attributes
2.0.2

Added

  • Null comparison
  • Not null comparison
  • Chained attributes example and documentation

Fixed

  • Code example in documentation
2.0.1

Added

  • Containing comparison for arrays
  • Extra data for policy rule attributes
2.0.0

Added

  • Configuration manager
  • YAML Loader for configuration files
  • Multiple configuration files loading
  • Example classes for example script

Changed

  • Rules and attributes are now defined with configuration file instead of database
  • The enforce method accepts objects instead of numeric IDs
  • Attributes are now accessed from the objects instead of the database

Removed

  • Rules and attributes creation by manager
1.2.0

Added

  • PSR-6 compliant cache implementation
  • Memory cache driver

Changed

  • Dynamic attributes are now an enforce method option

Fixed

  • Example script database connection
  • Support lowercase for comparison type values
1.1

Added

  • Scrutinizer CI
  • Travis CI
  • SQLite for unit tests

Changed

  • Perform PHP-CS-Fixer to apply PSR-2

Fixed

  • PHP 5.4 support
1.0

Added

  • POC file example.php
  • Environment Attributes
  • Dynamic Attributes

Changed

  • enforce() method to accept dynamic and environment attributes
  • Tables structure (optimized with foreign keys)

Fixed

  • Policy Rule creation
  • Attribute creation
0.3

Added

  • Comparison classes
  • enforce() method to take access-control decisions

Changed

  • Attributes model to implement comparison

Removed

  • Abac resetSchema method (replaced by fixtures)
0.2

Added

  • Policy Rule creation
  • Policy Rules manager
  • Policy Rules repository
  • Policy Rules model
  • Attributes manager
  • Attributes repository
  • Attributes model
  • SQL schema dump
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
amashukov/lnd-client-php
althinect/enum-permission
andydefer/laravel-actions
aimeos/prisma
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky