NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist
A simple lock library to coordinate access to shared resources across coroutines, processes and hosts
Latest stable
0.3.1
Last release 3 months ago
21 Aug 2026
Ships fairly regularly
a new release about every 4 weeks
Nearly every release is documented
notes for 9 of 9 stable releases
Nothing withdrawn
no release was ever pulled
7 months old
9 releases · first in 2026
Drag across the ruler to compare, or tap a release to open it.
fix(lock): jitter the distributed acquire backoff
Changes: https://github.com/utopia-php/monorepo/compare/lock/0.3.0...lock/0.3.1
feat(lock): let a lease refresh on another connection
Changes: https://github.com/utopia-php/monorepo/compare/lock/0.2.4...lock/0.3.0
Full Changelog: https://github.com/utopia-php/lock/compare/0.2.4...0.2.5
Full Changelog: https://github.com/utopia-php/lock/compare/0.2.4...0.2.5
Your coding agent can read these notes before it upgrades. Set up the MCP server →
One column per month.
feat(lock): expose the lease token so a write can be conditional on it
Changes: https://github.com/utopia-php/monorepo/compare/lock/0.2.3...lock/0.2.4
refactor: apply baseline rector to packages that lacked a config
Changes: https://github.com/utopia-php/monorepo/compare/lock/0.2.2...lock/0.2.3
refactor(monorepo): simplify absorb/sync flows (-635 LoC)
Changes: https://github.com/utopia-php/monorepo/compare/lock/0.2.1...lock/0.2.2
First release cut from the utopia-php monorepo.
First release cut from the utopia-php monorepo.
Breaking: lock classes moved from Utopia\Lock\Lock\* to Utopia\Lock\*. Users on 0.1.0 must update imports:
Breaking: lock classes moved from Utopia\Lock\Lock\* to Utopia\Lock\*.
Users on 0.1.0 must update imports:
Utopia\Lock\Lock\Mutex → Utopia\Lock\MutexUtopia\Lock\Lock\Semaphore → Utopia\Lock\SemaphoreUtopia\Lock\Lock\File → Utopia\Lock\FileUtopia\Lock\Lock\Distributed → Utopia\Lock\DistributedThe Utopia\Lock\Lock interface and Utopia\Lock\Exception hierarchy are unchanged.
Utopia\Lock\Lock interface with acquire, tryAcquire, release, withLock.
Initial release.
Utopia\Lock\Lock interface with acquire, tryAcquire, release, withLock.Utopia\Lock\Lock\Mutex — Swoole coroutine mutex backed by Swoole\Coroutine\Channel(1).Utopia\Lock\Lock\Semaphore — Swoole coroutine semaphore with a configurable permit count.Utopia\Lock\Lock\File — flock() based file lock (LOCK_EX or LOCK_SH), cooperates with Swoole's runtime hooks.Utopia\Lock\Lock\Distributed — Redis SET NX EX lock with Lua-atomic release and refresh, fractional-second timeouts, optional logger.Utopia\Lock\Exception base exception and Utopia\Lock\Exception\Contention thrown when withLock times out.