Download the PHP package unstoppablecarl/gate-crasher without Composer
On this page you can find all versions of the php package unstoppablecarl/gate-crasher. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download unstoppablecarl/gate-crasher
More information about unstoppablecarl/gate-crasher
Files in unstoppablecarl/gate-crasher
Package gate-crasher
Short Description Safer Laravel superuser auth
License MIT
Homepage https://github.com/unstoppablecarl/gate-crasher
Informations about the package gate-crasher
Gate Crasher
Safer Laravel superuser auth.
About
Gate Crasher leverages the Laravel Gate::before($beforeCallback)
api to authorize superuser abilities skipping the normal Gate ability/policy functionality.
When Gate::allows()
is called, If the $beforeCallback
returns a non-null result that result will be considered the result of the check.
See https://laravel.com/docs/5.2/authorization
See Illuminate\Auth\Access\Gate::before()
and Illuminate\Contracts\Auth\Access\Gate::before()
in the Laravel framework.
Requirements
- PHP >= 5.5.9
- Laravel >= 5.2
Installation
The preferred method of installation is via Packagist and Composer.
Run the following command to install the package and add it as a requirement to your project's composer.json
:
Usage
A Gate Crasher instance should be registered within the boot()
method of a service provider.
Minimal gate crasher setup
The default configuration of a Gate Crasher instance creates the following behavior:
Configuring Abilities
Examples
An example service provider is included here:
examples/GateCrasherServiceProvider.php
How It Works
This is an abstract description of how Gate Crasher works. See the source code for exact details.
Running the tests
Run Unit Tests
Run Codesniffer (psr-2)
Run both
Contributing
Contributions and Pull Requests welcome!
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Authors
- Carl Olsen - Initial work - Unstoppable Carl
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the LICENSE.md file for details
All versions of gate-crasher with dependencies
illuminate/config Version 5.4.* || 5.5.* || 5.6.* || 5.7.* || 5.8.*
illuminate/support Version 5.4.* || 5.5.* || 5.6.* || 5.7.* || 5.8.*
illuminate/contracts Version 5.4.* || 5.5.* || 5.6.* || 5.7.* || 5.8.*