Download the PHP package monkeyscloud/monkeyslegion-permissions without Composer

On this page you can find all versions of the php package monkeyscloud/monkeyslegion-permissions. 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 monkeyslegion-permissions

MonkeysLegion Permissions v1

Enterprise RBAC, policy gates, composable rules, approval workflows, LDAP/SAML sync, and Apex AI fuzzy authorization for MonkeysLegion. Ground-up build for PHP 8.4 with property hooks, backed enums, and zero magic.

Features

Feature Status
Authorizer Pipeline Gate → PolicyResolver → RuleEngine → Decision
Attribute-First Security #[RequiresRole], #[RequiresPermission], #[Authorize], #[Gate]
Policy System Model-to-policy mapping with before() / after() hooks
Composable Rules Predicate engine with AND/OR/NOT/CUSTOM operators, priority-based execution
Database Store Role, Permission, UserRole, UserPermission, StoredRule entities
Approval Workflows PermissionRequest → review → approve/deny with expiry
Cache Layer Transparent permission caching with TTL and tag-based invalidation
LDAP/SAML Sync RoleSyncAdapterInterface with additive/replace/merge/intersect strategies
Apex AI Integration LLM-backed fuzzy policy evaluation with confidence thresholds
PSR-15 Middleware AuthorizationMiddleware — attribute-aware request authorization
Event System 11 audit events for authorization, roles, permissions, and sync
CLI Commands permissions:install, permissions:entities
PHP 8.4 Native Property hooks, backed enums, asymmetric visibility

Requirements

Installation

Quick Setup

Architecture

The package is organized into clear namespaces:

Configuration

Attribute-Based Authorization

Gate (Ability Definitions)

Policy System

Composable Rules

Approval Workflows

LDAP/SAML Sync

Strategies: Strategy Behavior
Additive Only add new roles, never remove
Replace External roles replace all local roles
Merge Union of external and local roles
IntersectLocal Keep only roles that exist both externally and locally

Apex AI Fuzzy Authorization

Database Entities

The package includes 8 entity stubs ready for database persistence:

Entity Purpose
Role Roles with key, name, level, metadata
Permission Permissions with key, name, group
UserRole User ↔ Role assignments with expiry
UserPermission Direct user ↔ permission grants with expiry
StoredRule Persistent composable rules with predicates
PermissionRequest Approval workflow requests
RequestStatus Enum: pending, approved, denied, expired
RequestType Enum: permission, role

Events

Event When Dispatched
AuthorizationChecked Any authorization check completes
AuthorizationDenied Authorization denied
PermissionGranted Permission assigned to user
PermissionRevoked Permission removed from user
PermissionRequested User requests a permission
RequestApproved Request approved by reviewer
RequestDenied Request denied by reviewer
RoleAssigned Role assigned to user
RoleRevoked Role removed from user
RolesSynced External role sync completed
ApexPolicyEvaluated AI policy evaluation completed
PolicyEvaluated Standard policy evaluation completed

Middleware Setup

Cache Layer

Security Posture

Testing

License

MIT © MonkeysCloud


All versions of monkeyslegion-permissions 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 monkeyscloud/monkeyslegion-permissions contains the following files

Loading the files please wait ...