Download the PHP package mcprohosting/flywheel without Composer

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

Flywheel

Flywheel is a small Laravel package for reacting differently under varying levels of load. It isn't an extremely precise mechanism - it's optimized for speed and designed to hold up under rigorous circumstances (that's where it's meant to be used, after all!). Its intention is allowing the application to, under high strain such as a denial of service attack, forgo expensive but not mission-critical functionality.

It does this by storing a single string to the cache for each "flywheel". This is quite small and consists of two concatenated values, which are used to do a kind of linear regression to determine the load of the application on the interval. It's designed to be fast, not highly accurate, and to add the minimal possible overhead to the system.

Usage

  1. Install the package with Laravel.
  2. Register its service provider, Mcprohosting\Flywheel\FlywheelServiceProvider
  3. You may wish to register its facade as an alias, "Flywheel" => "Mcprohosting\Flywheel\Flywheel"
  4. Profit?

Factory method: Flywheel::make(string $name, float $interval, callable|array $level)

Instantiate a new Flywheel. $name is a fairly arbitrary string, just used to identify the given wheel with the cache. $interval should be the given interval, in seconds, that you want to "monitor" against. $level should be an array, with its keys being the number of calls it takes to reach that "level" and values being callables that are called at each level. For example:

Now, if this page gets between zero and ten visitors in a period of three seconds, it'll show the first message: "Load is A-Okay, Connor!" If it gets between ten and fifty, it will likewise show the second message. Any more than that, the third message will be shown. You may have noticed that any arguments that get passed to spin() will be passed on as arguments to whatever is called for the current level.

You can alternately declare levels dynamically. This may be preferable, as you're able create the Wheel when the application boots, but bind the logic on where and when it is necessary.


All versions of flywheel with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
illuminate/support Version 4.*
illuminate/cache Version 4.*
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 mcprohosting/flywheel contains the following files

Loading the files please wait ....