PHPackages                             malico/teams - 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. [Framework](/categories/framework)
4. /
5. malico/teams

ActiveLibrary[Framework](/categories/framework)

malico/teams
============

Team management functionality for Laravel applications.

0.1.2(9mo ago)6292[1 PRs](https://github.com/yondifon/teams/pulls)MITPHPPHP ^8.2CI failing

Since Aug 30Pushed 9mo agoCompare

[ Source](https://github.com/yondifon/teams)[ Packagist](https://packagist.org/packages/malico/teams)[ RSS](/packages/malico-teams/feed)WikiDiscussions 0.x Synced today

READMEChangelog (3)Dependencies (12)Versions (11)Used By (0)

Laravel Teams
=============

[](#laravel-teams)

A Laravel package that provides team management functionality for multi-tenant applications. Create teams, manage members, send invitations, and handle role-based permissions with a simple, extensible API.

Features
--------

[](#features)

- **Team Management**: Create, update, and delete teams with owner relationships
- **Member Management**: Add and remove team members with role assignments
- **Email Invitations**: Send team invitations via email with signed URLs
- **Role-Based Permissions**: Flexible role system with custom permissions
- **Personal Teams**: Support for personal teams alongside collaborative teams
- **Current Team Context**: Switch between teams with user context management
- **Event System**: Events for all team operations (adding, removing, inviting, etc.)
- **Multi-Stack Support**: Livewire components included, Inertia.js support planned
- **Authorization**: Built-in policies and gates for secure operations

Requirements
------------

[](#requirements)

- PHP 8.2 or higher
- Laravel 11.0 or 12.0

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

[](#installation)

Install the package via Composer:

```
composer require malico/teams
```

Run the installation command to set up the package:

```
php artisan teams:install
```

Available installation options:

```
php artisan teams:install --stack=livewire    # Install Livewire components
php artisan teams:install --stack=inertia     # Install Inertia.js components (coming soon)
php artisan teams:install --override          # Override auth files with team invitation support
```

The installation process will:

- Publish database migrations for teams, memberships, and invitations
- Copy model stubs (Team, TeamInvitation, Membership, User)
- Install the TeamsServiceProvider
- Copy policy and listener classes
- Set up frontend components for your chosen stack
- Add team routes to your application

Configuration
-------------

[](#configuration)

### User Model Setup

[](#user-model-setup)

Add the `HasTeams` trait to your User model:

```
