Download the PHP package patrickhanna/laravel-warden without Composer

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

Laravel Warrant

Row-level permissions & authorization for Laravel — one rule, compiled straight to SQL.

Beta Documentation Laravel 11 & 12 PHP 8.2+ MIT License

Read the documentation → laravel-warrant.dev

[!WARNING] Laravel Warrant is in beta and still being tested. It's usable, but the API may change between releases — pin your version and check the changelog before upgrading. Please report any issues you run into.

[!NOTE] Not an official Laravel package. Laravel Warrant is an independent, open-source project. It is not affiliated with, maintained by, or endorsed by the Laravel team.


Schema-based authorization for Laravel that compiles a small, human-readable rule language directly into SQL — so "what can this user do?" and "which rows can this user touch?" are answered by the database in a single query, not by loading records into memory.

That block is a real, complete Warrant rule. Warrant turns it into a WHERE clause.

Installation

The service provider auto-registers. Publish the config to edit it in place:

Requirements: PHP 8.2+, Laravel 11 or 12. The SQL Warrant generates is supported on PostgreSQL, MySQL/MariaDB, and SQLite.

Documentation

Full docs live at laravel-warrant.dev:

Why Warrant

See Why Warrant for the full rationale and a comparison with the policy/query approach.

A quick example

1. The model uses the trait and names its schema:

2. The schema declares the vocabulary — abilities and conditions:

3. The resolver hands rules (as data) to Warrant for the current user:

The rules themselves are just text:

4. Register the resolver and schema in config/warrant.php:

5. Check access — every call is a single SQL query:

The Quick start walks through this end to end.

License

Laravel Warrant is open-source software licensed under the MIT license.


All versions of laravel-warden with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/auth Version ^11.0|^12.0|^13.0
illuminate/contracts Version ^11.0|^12.0|^13.0
illuminate/database Version ^11.0|^12.0|^13.0
illuminate/http Version ^11.0|^12.0|^13.0
illuminate/routing Version ^11.0|^12.0|^13.0
illuminate/support Version ^11.0|^12.0|^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 patrickhanna/laravel-warden contains the following files

Loading the files please wait ...