2017 © Pedro Peláez
 

library php-peek-lock

A PHP library which acts as a wrapper around flock() to provide an interprocess lock.

image

polderknowledge/php-peek-lock

A PHP library which acts as a wrapper around flock() to provide an interprocess lock.

  • Tuesday, September 12, 2017
  • by polderknowledge
  • Repository
  • 7 Watchers
  • 19 Stars
  • 218 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

php-peek-lock

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score ![Total Downloads][ico-downloads], (*1)

A PHP class which wraps flock(), (*2)

You can use this to run jobs in the background and peek from the webserver if they are running., (*3)

Install

Via Composer, (*4)

``` bash $ composer require polderknowledge/php-peek-lock, (*5)


## Usage ```php // lock the file in a job to prevent race conditions between jobs: $lock = new PeekLock('mylockfile.txt'); $lock->blockTillLock(); // check if the job is running from the webpage $lock = new PeekLock('mylockfile.txt'); echo 'busy? ' . ($lock->isLocked() ? 'yes' : 'no');

Change log

Please see CHANGELOG for more information what has changed recently., (*6)

Testing

bash $ composer test, (*7)

Contributing

Please see CONTRIBUTING and CONDUCT for details., (*8)

Security

If you discover any security related issues, please report them via HackerOne instead of using the issue tracker or e-mail., (*9)

Community

We have an IRC channel where you can find us every now and then. We're on the Freenode network in the channel #polderknowledge., (*10)

Credits

License

Please see LICENSE.md for the license of this application., (*11)

The Versions

12/09 2017

dev-master

9999999-dev https://polderknowledge.com

A PHP library which acts as a wrapper around flock() to provide an interprocess lock.

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

lock flock peek polderknowledge php-peek-lock

07/07 2017

1.0.1

1.0.1.0 https://polderknowledge.com

A PHP library which acts as a wrapper around flock() to provide an interprocess lock.

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

lock flock peek polderknowledge php-peek-lock

07/07 2017

1.0.0

1.0.0.0 https://polderknowledge.com

A PHP library which acts as a wrapper around flock() to provide an interprocess lock.

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

lock flock peek polderknowledge php-peek-lock