PHPackages                             wudege/sil - 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. wudege/sil

ActiveLibrary

wudege/sil
==========

Single Instance Lock based Redis

v1.0.2(9y ago)210MITPHPPHP ^5.6 || ^7.0

Since Jan 10Pushed 9y ago1 watchersCompare

[ Source](https://github.com/wudege/sil)[ Packagist](https://packagist.org/packages/wudege/sil)[ RSS](/packages/wudege-sil/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

sil
===

[](#sil)

Single Instance Lock based Redis

[![Software License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE)[![Build Status](https://camo.githubusercontent.com/a695520292690617445d31aa03491b3d6addbda4366412dde9d2d2155d93fffd/68747470733a2f2f7472617669732d63692e6f72672f7775646567652f73696c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/wudege/sil)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/3f25750f4cf437b831080f3cd5de6aa45c8d4cb4ceb8487e1e401635b2b165de/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7775646567652f73696c2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/wudege/sil/?branch=master)[![Coverage Status](https://camo.githubusercontent.com/59f1e982b11ea1e9a85f52cb8f92feea6f0da157a8509418e9529811c93ac25d/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f7775646567652f73696c2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/wudege/sil?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/d5b24e0f363dbb9490da366a22c7677f3b027970aae12ed0b033da93490c58d1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7775646567652f73696c2e737667)](https://packagist.org/packages/wudege/sil)[![Total Downloads](https://camo.githubusercontent.com/d54b1fbd295b7ec6a2173e83773fa99a3df018db9f3e3ec8278eaaf7922cdc3d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7775646567652f73696c2e737667)](https://packagist.org/packages/wudege/sil)[![Twitter URL](https://camo.githubusercontent.com/a29718bad75dd7709d052812131602e05011ee8db979383af824ce0aca77297c/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f75726c2f687474702f736869656c64732e696f2e7376673f7374796c653d736f6369616c267374796c653d666c61742d737175617265)](https://twitter.com/wudege)

INSTALL
-------

[](#install)

- Use the composer command or the composer.json file. That's the recommend way. And the SDK is here [`wudege/sil`](https://packagist.org/packages/wudege/sil)

```
$ composer require wudege/sil
```

USAGE
-----

[](#usage)

```
require __DIR__ . '/../vendor/autoload.php';

$config = array(
    'host'     => '127.0.0.1',
    'port'     => 6379,
    'database' => 5,
);

$client = new \Predis\Client($config);
$lock   = new \Sil\RedisSingleInstanceLock($client);
$lock->acquireLock('lock-example', sha1(uniqid(mt_rand(), true)), 3000);
```

TEST
----

[](#test)

```
$ ./vendor/bin/phpunit tests/Sil/Tests
```

LICENSE
-------

[](#license)

The MIT License (MIT). [License File](https://github.com/wudege/sil/blob/master/LICENSE).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~13 days

Total

3

Last Release

3386d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3d1a07bb6303e4ea765b0b73ba530510449d9b26854dd38213340ff0537c09f6?d=identicon)[wudege](/maintainers/wudege)

---

Top Contributors

[![wudege](https://avatars.githubusercontent.com/u/19968467?v=4)](https://github.com/wudege "wudege (5 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/wudege-sil/health.svg)

```
[![Health](https://phpackages.com/badges/wudege-sil/health.svg)](https://phpackages.com/packages/wudege-sil)
```

###  Alternatives

[bagisto/bagisto

Bagisto Laravel E-Commerce

26.2k161.6k7](/packages/bagisto-bagisto)[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

22.8k69.3k](/packages/grumpydictator-firefly-iii)[teamtnt/tntsearch

A fully featured full text search engine written in PHP

3.2k3.0M28](/packages/teamtnt-tntsearch)[unopim/unopim

UnoPim Laravel PIM

9.4k1.8k](/packages/unopim-unopim)[pdffiller/qless-php

PHP Bindings for qless

29113.2k1](/packages/pdffiller-qless-php)[concrete5/core

Concrete core subtree split

19159.3k48](/packages/concrete5-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
