Download the PHP package andmarruda/authorization-module without Composer

On this page you can find all versions of the php package andmarruda/authorization-module. 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 authorization-module

Authorization Module

Role, permission, and plan-based access control for Laravel applications.

Package: andmarruda/authorization-module Namespace: Andmarruda\\AuthorizationModule

Requirements

Install

Provider auto-discovery is enabled.

If your app does not use Laravel package auto-discovery, register providers manually:

Publish configs:

Publish all required migrations (Authorization Module + Spatie) with one command:

Use --force to overwrite previously published files.

Run migrations:

Application Setup

1. Add the trait to your User model

2. Configure config/authorization.php

Set your user model:

Adjust route prefix and middleware as needed:

3. Configure Spatie (if needed)

If you changed guards/tables in config/permission.php, keep them aligned with your app guard strategy.

Available Endpoints

By default all endpoints are under /authorization.

Roles and Permissions

Plans

Deployment Guide

Production checklist

  1. Install package and publish configs.
  2. Set 'user_model' in config/authorization.php.
  3. Ensure APP_ENV, APP_DEBUG, DB credentials, and cache drivers are correct.
  4. Run migrations in target environment.
  5. Clear and rebuild caches.
  6. Run smoke tests on auth routes.

Typical deploy commands

If your deployment creates cache before publishing config, run publish first and rebuild cache.

Post-deploy verification

Notes


All versions of authorization-module with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/database Version >=10.0
illuminate/routing Version >=10.0
illuminate/support Version >=10.0
spatie/laravel-permission Version ^6.0|^7.0|^8.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 andmarruda/authorization-module contains the following files

Loading the files please wait ...