Download the PHP package stats4sd/laravel-team-management without Composer

On this page you can find all versions of the php package stats4sd/laravel-team-management. 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 laravel-team-management

Laravel Team Management

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This package is an opinionated way to add teams of users to your Laravel application. It includes multiple ways to invite new users via email, and integrates with Laravel Backpack so you can manage teams and user invites via a clean CRUD panel interface.

The package is intended for use in a Laravel Backpack application, and works best when you also use Laravel Backpack Permission Manager / Spatie Permission Manager to assign users site-wide roles. You can use it in an application that doesn't use Backpack at all, but it will take some extra work to build the pages and integrate the team management blade templates.

Installation

You can install the package via composer:

You can publish and run the migrations with:

You can also choose to publish the config file, but we recommend instead that you set the needed config items in your .env file.

If you want to overwrite or modify the package routes, you can publish the routes file. The package's internal routes will not be loaded if this file (/routes/backpack/team-management.php) exists in your application.

Setup

To link users to teams, the package needs to know what your application's 'User' model is. The default is to look for '\App\Models\User'. If you use a different model, please add the following entry in your .env file:

You should also add the HasTeamMemberships trait to your User model. This trait defines the required relationships to the team, and adds some functionality to enable the invites feature to work as intended.

If you use Permission Manager, you should also define the SITE_ADMIN_ROLE. Users with this role will have full access to all teams. By default, this is set to admin, but if you use a different convention, please add it to your .env file.

CRUD Panels

The package includes 3 crud panels. The links to these panels are:

You can run the following command to automatically add links at the bottom of your resources/views/vendor/backpack/base/inc/sidebar_content.blade.php file:

You can also manually add those links to your sidebar, or anywhere else in your application.

Package Features

Team Management

The TeamCrudController provides the basic pages required to:

Invite Users to a Team

The invite members form has 2 ways to add members. You can search the existing application users and add them directly, or you can send an email invite to people outside of the platform. You can add as many email addresses as you want to the form, and each address will be emailed separately.

Invite Users to the whole site with a specific role

You may also wish to invite users to your application without assigning them to a team. This package includes a "RoleInvite" model, migration and CrudController to let you manage this.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-team-management with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
backpack/crud Version ^5.0|^6.0
backpack/permissionmanager Version ^6.0|^7.0
spatie/laravel-package-tools Version ^1.13.0
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 stats4sd/laravel-team-management contains the following files

Loading the files please wait ....