All Projects → polderknowledge → php-peek-lock

polderknowledge / php-peek-lock

Licence: MIT license
A wrapper around flock()

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to php-peek-lock

mutexsafe
MutexSafe will help you use mutex more effectively. Different mutex for different components are presented. In addition, you can add your own lockers and use within the library.
Stars: ✭ 15 (-16.67%)
Mutual labels:  lock, flock
go-lock
go-lock is a lock library implementing read-write mutex and read-write trylock without starvation
Stars: ✭ 78 (+333.33%)
Mutual labels:  lock
json-peek
Stringify JSON *just enough* to see what it is
Stars: ✭ 33 (+83.33%)
Mutual labels:  peek
phpchartjs
A PHP library that makes it easy to generate data for ChartJS.
Stars: ✭ 24 (+33.33%)
Mutual labels:  lock
LockView
一个自定义的多功能的锁屏页解锁控件
Stars: ✭ 17 (-5.56%)
Mutual labels:  lock
php-fslock
A simple lock implementation using flock.
Stars: ✭ 18 (+0%)
Mutual labels:  lock
Peek
Take a peek into your Rails applications.
Stars: ✭ 3,153 (+17416.67%)
Mutual labels:  peek
focus-trap-vue
Vue component to trap the focus within a DOM element
Stars: ✭ 156 (+766.67%)
Mutual labels:  lock
browser-tabs-lock
Using this package, you can synchronise your code logic across browser tabs.
Stars: ✭ 29 (+61.11%)
Mutual labels:  lock
ci
Run npm ci using the appropriate Node package manager (npm, yarn, pnpm)
Stars: ✭ 39 (+116.67%)
Mutual labels:  lock
activejob-uniqueness
Unique jobs for ActiveJob. Ensure the uniqueness of jobs in the queue.
Stars: ✭ 194 (+977.78%)
Mutual labels:  lock
ES-Timer
A USB timer powered by Digispark ATtiny85 according to 🍅 pomodoro time management technique
Stars: ✭ 45 (+150%)
Mutual labels:  lock
door-controller-test-tool
Door controller test tool for physical access control devices. (THIS PROJECT IS NO LONGER MAINTAINED)
Stars: ✭ 13 (-27.78%)
Mutual labels:  lock
pglock
PostgreSQL Lock Client for Go
Stars: ✭ 50 (+177.78%)
Mutual labels:  lock
async
Synchronization and asynchronous computation package for Go
Stars: ✭ 104 (+477.78%)
Mutual labels:  lock
Peek
All new design. Inspect your iOS application at runtime.
Stars: ✭ 2,594 (+14311.11%)
Mutual labels:  peek
keyway
A simple Bash lock file library.
Stars: ✭ 28 (+55.56%)
Mutual labels:  lock
optimistic lock coupling rs
🍋: A General Lock following paper "Optimistic Lock Coupling: A Scalable and Efficient General-Purpose Synchronization Method"
Stars: ✭ 21 (+16.67%)
Mutual labels:  lock
gitlit
A gui for Git LFS file locks
Stars: ✭ 14 (-22.22%)
Mutual labels:  lock
react-native-awesome-pin
A highly interactive and customisable PIN code screen for React Native.
Stars: ✭ 28 (+55.56%)
Mutual labels:  lock

php-peek-lock

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

A PHP class which wraps flock()

You can use this to run jobs in the background and peek from the webserver if they are running.

Install

Via Composer

$ composer require polderknowledge/php-peek-lock

Usage

// 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.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

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

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.

Credits

License

Please see LICENSE.md for the license of this application.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].