PHPackages                             kdn/attempts-counter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. kdn/attempts-counter

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kdn/attempts-counter
====================

An abstract counter of attempts to perform some actions.

1.0.1(3y ago)024MITPHPPHP &gt;=5.4.0

Since Sep 28Pushed 3y ago1 watchersCompare

[ Source](https://github.com/dmitry-kulikov/attempts-counter)[ Packagist](https://packagist.org/packages/kdn/attempts-counter)[ RSS](/packages/kdn-attempts-counter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

attempts-counter
================

[](#attempts-counter)

An abstract PHP counter of attempts to perform some actions.

[![License](https://camo.githubusercontent.com/ef4c447d0408dc30d0e3c1fde6ea6b19a85e7bf650734ee38872be0d5b73f5d7/68747470733a2f2f706f7365722e707567782e6f72672f6b646e2f617474656d7074732d636f756e7465722f6c6963656e7365)](https://packagist.org/packages/kdn/attempts-counter)[![Latest Stable Version](https://camo.githubusercontent.com/1694202446d964b1be6ca5f29515b583f7245690a1a0b676309845ca9e340a27/68747470733a2f2f706f7365722e707567782e6f72672f6b646e2f617474656d7074732d636f756e7465722f762f737461626c65)](https://packagist.org/packages/kdn/attempts-counter)[![Code Coverage](https://camo.githubusercontent.com/d504e80e027d230a59ddc9ef7ddff5464b554094bffcc4c31eb8477b9520dce9/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f646d697472792d6b756c696b6f762f617474656d7074732d636f756e7465722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/dmitry-kulikov/attempts-counter/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/f52a2aeed7dbe9d5ab747f4994f905bbfb70e1776feac301872fb5516a19ab9a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f646d697472792d6b756c696b6f762f617474656d7074732d636f756e7465722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/dmitry-kulikov/attempts-counter/?branch=master)[![Code Climate](https://camo.githubusercontent.com/3a954460aa2b3ce1a53e75539666e44d826ab48359984663d3a8abeca8cf602b/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f646d697472792d6b756c696b6f762f617474656d7074732d636f756e7465722f6261646765732f6770612e737667)](https://codeclimate.com/github/dmitry-kulikov/attempts-counter)

Requirements
------------

[](#requirements)

- PHP 5.4 or later or HHVM 3.

Installation
------------

[](#installation)

The preferred way to install this package is through [Composer](https://getcomposer.org).

To install, either run

```
php composer.phar require kdn/attempts-counter "*"
```

or add

```
"kdn/attempts-counter": "*"

```

to the `require` section of your `composer.json` file.

Usage
-----

[](#usage)

Repeat the retrieving of URL content in case of network problems:

```
