Download the PHP package jojo1981/polling without Composer

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

Polling library for conditionally retry operations based on a result checker.

Build Status Coverage Status Latest Stable Version Total Downloads License

Author: Joost Nijhuis [[email protected]](mailto:[email protected])

A simple polling library which retries the poll action as long as the result checker is not returning a success result for a maximum number of times with a given delay in between.

The executor callback can perform any task you want and can return any result you want. The result checker should be able to check whether the result from the executor is successful or not and must return a boolean value. Optionally you can add an exception checker. This can be omitted and be handled in the executor, but for separation of concerns you can split this logic. The delay in microseconds can be given and is by default 10000000 microseconds (10 seconds). The delay will be between the retries. The max poll count can be given and is by default 10. The max poll count is the number of times at maximum the executor will be invoked including the first time. Default arguments for the executor, result checker, exception checker and start polling can be omitted. This can be handy to keep the callback functions pure.

Installation

Library

Composer

Install PHP Composer

Usage


All versions of polling with dependencies

PHP Build Version
Package Version
Requires jojo1981/contracts Version ^1.0
jojo1981/typed-collection Version ^5.0
php Version ^7.4|^8.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 jojo1981/polling contains the following files

Loading the files please wait ....