2017 © Pedro Peláez
 

library tryagain

The TryAgain library permits to call a function again if the result is wrong.

image

villfa/tryagain

The TryAgain library permits to call a function again if the result is wrong.

  • Wednesday, May 30, 2018
  • by villfa
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

TryAgain

Build Status, (*1)

TryAgain is a very light PHP library which permits to call a function again when the result is not satisfying., (*2)

The main advantage is that it permits to avoid code duplication by creating reusable validators., (*3)

Server Requirements

  • PHP version 7.0 or newer

Installation

TryAgain may be installed using Composer. You can read more about Composer and its main repository at http://packagist.org. To install TryAgain using Composer, first install Composer for your project using the instructions on the Packagist home page. You can then define your development dependency on TryAgain using the suggested parameters below., (*4)

{
    "require": {
        "villfa/TryAgain": ">=1.0.0"
    }
}

To install, you then may call:, (*5)

$ composer.phar install

Tests

To run the test suite, you need composer and PHPUnit., (*6)

$ cd path/to/TryAgain
$ composer.phar install --dev
$ ./vendor/bin/phpunit

Example

Here a minimalist example:, (*7)

``` php <?php, (*8)

require 'vendor/autoload.php';, (*9)

$handler = new \TryAgain\Handler; $handler->execute('printf', 'Hello world');, (*10)

```, (*11)

More detailed examples are available in the examples directory., (*12)

The Versions

30/05 2018

dev-master

9999999-dev https://github.com/villfa/TryAgain

The TryAgain library permits to call a function again if the result is wrong.

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

by Fabien Villepinte

library error handling

20/04 2013

1.0.0

1.0.0.0 https://github.com/villfa/TryAgain

The TryAgain library permits to call a function again if the result is wrong.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

by Fabien Villepinte

library error handling