PHPackages                             bybzmt/tcplock - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. bybzmt/tcplock

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

bybzmt/tcplock
==============

php tcp locker and golang server

v2.0.0(8y ago)6443Apache-2.0PHPPHP &gt;=5.3.0

Since Jul 13Pushed 8y ago2 watchersCompare

[ Source](https://github.com/bybzmt/tcplock)[ Packagist](https://packagist.org/packages/bybzmt/tcplock)[ Docs](http://github.com/bybzmt/tcplock)[ RSS](/packages/bybzmt-tcplock/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (7)Used By (0)

tcplock
=======

[](#tcplock)

是一个网络锁服务,用于在多台服务器间进行加锁工作。

server
------

[](#server)

这是服务器端程序，需要使用golang进行编译，没有依赖包

安装go后进入这个目录直接go build就可以了。

启动方法 `./tcplock -port=:7002 -time=20`

port是端口，可以是 `:8080` 或 `127.0.0.1:8080` 这两种形式。

time是超时间间，超过这个时间锁会自动解除。

phpclient
---------

[](#phpclient)

这是php的客户端程序。 可以看demo.php里的代码。

composer安装 composer require "bybzmt/tcplock"

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

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 ~96 days

Recently: every ~120 days

Total

6

Last Release

3157d ago

Major Versions

v1.0.4 → v2.0.02017-11-07

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1188099?v=4)[bybzmt](/maintainers/bybzmt)[@bybzmt](https://github.com/bybzmt)

---

Top Contributors

[![bybzmt](https://avatars.githubusercontent.com/u/1188099?v=4)](https://github.com/bybzmt "bybzmt (8 commits)")

---

Tags

lockersocketlocktcplocker

### Embed Badge

![Health badge](/badges/bybzmt-tcplock/health.svg)

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

###  Alternatives

[media24si/upn-generator

UPN form generator

153.0k](/packages/media24si-upn-generator)

PHPackages © 2026

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