Download the PHP package jurager/teams without Composer
On this page you can find all versions of the php package jurager/teams. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jurager/teams
More information about jurager/teams
Files in jurager/teams
Informations about the package teams
Jurager/Teams
A Laravel package for managing teams and user permissions, supporting multi-tenant dynamic roles, role groups, and team-specific permissions.
Users can be organized into groups within teams, each with custom permissions and abilities. Group permissions add to the permissions of the member's role. For a specific record, the user's own rules are checked first, then their groups' rules, then their role's.
Additionally, users can be added to a global group to grant them access across all teams with the group's permissions. This feature is ideal for scenarios like providing support across multiple teams without the need to add users to each team individually.
Features
- Team-scoped roles and permissions with a fluent API.
- Works with Laravel's Gate:
$user->can(),@can, and thecanmiddleware. - Inspect access decisions with Laravel's authorization responses.
- String-backed enums for role, group, and permission codes.
- Hierarchical wildcard permissions (
articles.*). - Team groups that extend role permissions.
- Record-level allow and forbid rules for members, roles, and groups.
- Expiring record rules, checked at authorization time.
- Limit API tokens to a list of permissions, with Sanctum, Passport, or any provider.
- Query users by team-wide permission.
- Query record rules with their permissions and recipients.
- Global groups for cross-team access.
- Ownership transfer.
- Email invitations.
- Fast permission checks on lists of records.
- Team, membership, and access change events.
- Model factories for your tests.
Requirements
- PHP 8.3+
- Laravel 10.30+, 11, 12, or 13
Installation
Add Jurager\Teams\Traits\HasTeams to your User model:
Usage
See the documentation for groups, route protection, invitations, and configuration.
Upgrading
Upgrading from 3.x? See the upgrade guide.
Development
License
This package is open-sourced software licensed under the MIT license.
All versions of teams with dependencies
illuminate/auth Version ^10.30|^11.0|^12.0|^13.0
illuminate/cache Version ^10.30|^11.0|^12.0|^13.0
illuminate/support Version ^10.30|^11.0|^12.0|^13.0
illuminate/database Version ^10.30|^11.0|^12.0|^13.0
illuminate/http Version ^10.30|^11.0|^12.0|^13.0
illuminate/routing Version ^10.30|^11.0|^12.0|^13.0
illuminate/bus Version ^10.30|^11.0|^12.0|^13.0
illuminate/mail Version ^10.30|^11.0|^12.0|^13.0
illuminate/queue Version ^10.30|^11.0|^12.0|^13.0
illuminate/validation Version ^10.30|^11.0|^12.0|^13.0