PHPackages                             linio/lock - 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. linio/lock

ActiveLibrary

linio/lock
==========

Simple lock handler for cli applications

0.1.0(9y ago)21.6k↓100%[1 PRs](https://github.com/LinioIT/lock/pulls)BSD-3-ClausePHPPHP &gt;=7.0

Since Aug 12Pushed 5y ago55 watchersCompare

[ Source](https://github.com/LinioIT/lock)[ Packagist](https://packagist.org/packages/linio/lock)[ RSS](/packages/linio-lock/feed)WikiDiscussions master Synced 1mo ago

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

Linio lock
==========

[](#linio-lock)

[![Latest Stable Version](https://camo.githubusercontent.com/d111027707f70329e02524904ed69f679b0a89877bb5ae6514d7380bbc7e2ee7/68747470733a2f2f706f7365722e707567782e6f72672f6c696e696f2f6c6f636b2f762f737461626c652e737667)](https://packagist.org/packages/linio/lock) [![License](https://camo.githubusercontent.com/6def39b00dd176efde9924d4a1d5c5fc2a22320aa765b664e74e90efe0b11ff7/68747470733a2f2f706f7365722e707567782e6f72672f6c696e696f2f6c6f636b2f6c6963656e73652e737667)](https://packagist.org/packages/linio/lock) [![Build Status](https://camo.githubusercontent.com/67e7abb8467f7d40389399a2dd15f45ad881e1b69120a079e7199b5fb1d99185/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f4c696e696f49542f6c6f636b2e706e67)](http://travis-ci.org/LinioIT/lock) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/f0a3a4e0788fad9ced8539afc18b5c163d0a652faed9bbf67cd394acdef6a1cd/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4c696e696f49542f6c6f636b2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/LinioIT/lock/?branch=master)

Linio lock is a small library to handle locks in CLI applications.

Install
-------

[](#install)

The recommended way to install Linio lock is [through composer](http://getcomposer.org).

```
{
    "require": {
        "linio/lock": "^0.1"
    }
}
```

Tests
-----

[](#tests)

To run the test suite, you need install the dependencies via composer, then run phpspec.

```
$ composer install
$ phpspec run

```

Usage
-----

[](#usage)

The following example shows all the features of linio/lock:

```
