2017 © Pedro Peláez
 

library filelock

Simple php library providing OOP-interface to file locks.

image

dorantor/filelock

Simple php library providing OOP-interface to file locks.

  • Tuesday, October 24, 2017
  • by dorantor
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,642 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 2 Versions
  • 35 % Grown

The README.md

FileLock

Build Status Total Downloads Coverage Status Latest Stable Version License, (*1)

Simple php library providing OOP-interface to file locks., (*2)

Installation

composer require dorantor/filelock, (*3)

Usage

<?php

// create lock object
$lock = new \Dorantor\FileLock('path/to/file');

// ..and work with it
if ($lock->acquire()) {
    // file is locked
    $lock->release();
}

// ..or it could be
if (!$lock->acquire()) {
    // failed with lock
    return;
}
// file was locked
$lock->release();

Credits

Idea, interfaces and some code shamelessly taken from benconstable/lock., (*4)

The Versions

24/10 2017

dev-master

9999999-dev https://github.com/dorantor/filelock/

Simple php library providing OOP-interface to file locks.

  Sources   Download

MIT

The Requires

  • php ^5.3|^7.0

 

file php lock flock

24/10 2017

v1.0.0

1.0.0.0 https://github.com/dorantor/filelock/

Simple php library providing OOP-interface to file locks.

  Sources   Download

MIT

The Requires

  • php ^5.3|^7.0

 

file php lock flock