PHPackages                             skyfuns/generalpack - 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. skyfuns/generalpack

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

skyfuns/generalpack
===================

v1.0(7y ago)017PHP

Since Oct 14Pushed 7y agoCompare

[ Source](https://github.com/SkyFuns/generalpack)[ Packagist](https://packagist.org/packages/skyfuns/generalpack)[ RSS](/packages/skyfuns-generalpack/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

\##Generalpack扩展包##

\###安装 一： 在您的项目composer中增加如下信息，如没有composer文件，则在根目录中通过命令行 composer init生成composer文件。

\###Gitlab扩展包库

```
1.在composer.json中增加如下扩展包库

"repositories": [
    {
        "type": "git",
        "url": "https://code.cdqidian.cn/liangyl/generalpack.git",
        "reference":"master"
    }
]

2.增加扩展包依赖：

"require": {
    "generalpack": "master"
}

3.使用 composer 更新扩展包

composer update

二：在命令行中发布扩展包配置

/**发布JWT客户端配置***/
php artisan vendor:publish --provider="Generalpack\Pack\Client\Jwt\JwtClientServiceProvider"

/**发布队列引擎配置***/
php artisan vendor:publish --provider="Generalpack\Pack\Queueengine\Activemq\ActivemqServiceProvider"

/**发布服务管理配置***/
php artisan vendor:publish --provider="Generalpack\Pack\Servicediscover\Serviceengine\ServiceengineServiceProvider"

```

\###服务发现代码调用实例

```
	namespace App\Http\Controllers;
	use Illuminate\Http\Request;
	use Serviceengine;

	class TestController extends Controller {
		public function test(Request $request) {

			$url = Serviceengine::discover('onlyuser');
			var_dump($url);
			die();

		}
	}

```

\####服务发现命令调用实例

```
服务发现 --- php artisan service:discover onlyuser
需传递服务名发现服务

服务注册 --- php artisan service:register onlyuser http:192.168.1.107:8000
需传递服务名和服务地址注册服务

服务注销 --- php artisan service:unregister onlyuser
需传递服务名来注销服务

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity61

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

Unknown

Total

1

Last Release

2769d ago

### Community

Maintainers

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

---

Top Contributors

[![SkyFuns](https://avatars.githubusercontent.com/u/28997319?v=4)](https://github.com/SkyFuns "SkyFuns (16 commits)")

### Embed Badge

![Health badge](/badges/skyfuns-generalpack/health.svg)

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

###  Alternatives

[zlikavac32/php-enum

Better PHP enum support

225.6k5](/packages/zlikavac32-php-enum)

PHPackages © 2026

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