Download the PHP package alexssander-cusin/panic-control-laravel without Composer

On this page you can find all versions of the php package alexssander-cusin/panic-control-laravel. 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 panic-control-laravel

Panic Control for Laravel

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

Installation

You can install the package via composer:

You can publish the config file with:

This are the contents of the published config file:

You can publish and run the migrations with (only for database store):

Usage

Facade

Create a Panic Control [^1]

Update a Panic Control [^1]

Get all Panic Control

Get a Panic Control

Check if Panic Control is Active

Helper

Check if Panic Control is Active

Command

List all Panic Control

Detail a Panic Control

Activate a Panic Control [^1]

Deactivate a Panic Control [^1]

Rules

We can add supplementary rules that will respect the main status

All rules must return true for the panic to be activated, if nothing is registered or return null|false, it is disregarded.

Route Name

Checks whether the Route::currentRouteName() return is listed inside the route-name key.

URL Path

Checks whether the Request::path() return is listed the url-path key.

Sampling

Will be activated for just a sample of the users, based on the number of chances, and the "out of" sample. In the example below, the panic control will be activated for 5 out of 10 users i.e. half of the users.

IMPORTANT: the chance is a probability, there may be a small variation both for more and for less.

User logged

Check if user logged id or email is listed the user key.

Custom Rules

To create a custom rule follow the example

The class must be registered in config/panic-control.php under the rules key.

In the rules column of the database, add the key registered in config/panic-control.php with the parameters that will be sent to the class.

Drivers

By default, the driver configured in config('panic-control.default'), but can be changed with support for: database, file, endpoint.

Extending Driver

This feature is in beta tests

If you want to include support for other driver, you can easily register a new driver in the AppServiceProvider as shown below:

Testing

Changelog

Please see CHANGELOG for more information on what has changed recently.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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

[^1]: Not supported for endpoint store.


All versions of panic-control-laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
guzzlehttp/guzzle Version ^7.7
illuminate/contracts Version >=10.0
spatie/laravel-package-tools Version ^1.14.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 alexssander-cusin/panic-control-laravel contains the following files

Loading the files please wait ....