Download the PHP package cellard/throttle without Composer

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

Laravel Throttle Service

Laravel built-in throttling allows to rate limit access to routes. But what about other processes, e.g. sending sms?

For example, you may need to limit amount of sms, user allowed to receive from your service. Or maybe you need to limit number of comments, user allowed to write in some time period.

This service can throttle any event you need:

Installation

composer require Cellard/throttle

Register Service Provider in config/app.php file.

Publish the package config file and migrations to your application. Run these commands inside your terminal.

php artisan vendor:publish --provider="Cellard\Throttle\ThrottleServiceProvider"

And also run migrations.

php artisan migrate

Setup

Set up your throttle service.

Exactly the same, but with helpers.

Then register your service in config/throttle.php.

Error messages

By default error messages looks like Next :event after :interval

Next sms after 23 hours 32 minutes 13 seconds

You may define custom error messages.

Placeholders:

Usage

Or in try-catch style

Also you may use helper function.

What is subject?

Subject is a scope.

You may check availability without subject.

It means that service will check limitations without reference to the exact phone number.

Subject means that service will check limitations per phone.

Pick up your room before you go out

Throttle Service stores records in its table, and you may want to clear it.

php artisan throttle:clean

Will remove obsolete records.

You may schedule it to run once a day or week...


All versions of throttle with dependencies

PHP Build Version
Package Version
Requires laravel/framework Version >=6.0
php Version >=7.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 cellard/throttle contains the following files

Loading the files please wait ....