PHPackages                             lifeofspring/test - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. lifeofspring/test

ActiveTest[Testing &amp; Quality](/categories/testing)

lifeofspring/test
=================

The test of lifeofspring.

v1.0.0(4y ago)014MITPHPPHP &gt;=7.0

Since Jun 18Pushed 4y ago1 watchersCompare

[ Source](https://github.com/lifeofspring/test)[ Packagist](https://packagist.org/packages/lifeofspring/test)[ Docs](https://github.com/lifeofspring/test)[ RSS](/packages/lifeofspring-test/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (1)Used By (0)

test
====

[](#test)

```
 https://getcomposer.org/
 https://packagist.org/

 https://github.com/

```

composer之创建自己的包
===============

[](#composer之创建自己的包)

```
    ## 自定义你的 composer.json 包:
    ```
    官方文档 https://packagist.org/about#how-to-update-packages
    ```

    ## 将你的代码上传至gitHub后,且 发布一个releases 1.0.0版本(后台设置手动添加)

    ## 在packagist仓库中submit你的git项目；
    ```
    访问 https://packagist.org/packages/submit，
    将github项目地址: https://github.com/lifeofspring/test  复制在里面，然后 check 提交到 packagist中!

    之后就可以用 composer require lifeofspring/test
    若指定版本用 composer require lifeofspring/test v1.0.0

    特别注意，在你的git项目中 必须有你自定义项目的  composer.json 配置, 如:
     {
      "name": "lifeofspring/test",
      "type": "test",
      "description": "The test of lifeofspring.",
      "keywords": [
        "lifeofspring",
        "php"
      ],
      "homepage": "https://github.com/lifeofspring/test",
      "license": "MIT",
      "authors": [
        {
          "name": "",
          "email": "",
          "homepage": "http://xx.xx.xx",
          "role": "Developer"
        }
      ],
      "require": {
        "php": ">=7.0"
      },
      "autoload": {
        "psr-4": {
          "Lifeofspring\\Test\\": "src/"
        }
      }
    }
    ```

    ## 在GitHub中,配置和Packagist之间的自动更新钩子:
    ```
    首先，在 packagist 网站的设置中， Profile -> show API token 拿到你的 密钥，如 "xxxxe707ec23e194xxxx",
    其次，在 github 网站的设置中， Webhooks ->  Add webhook:
    Payload URl 填写你的地址，            如：  https://packagist.org/api/github?username=lifeofspring
    Content type 填写packagist提供的类型， 如:  application/json
    Secret 填写packagist提供的令牌,       如:   xxxxe707ec23e194xxxx
    内容类型： application/json
    秘密：您的Packagist API 令牌

    其他配置项，默认值即可,
    保存后，若配对成功，在 https://packagist.org/api/github (push) 前面 有个绿色小勾(即gitHub设置ok)

    在你的 packagist 网站对应项目中，会有个 绿色的 "This package is auto-updated." 提示
    ```

    ## 3. 测试GitHub 发布一个新 releases 版本 （需要登录网站后台,手动创建 -> Draft a new release), 看下你的 packagist的同步情况~

```

截止,你的自定义 composer
-----------------

[](#截止你的自定义-composer)

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

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

1794d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5fa9ed6b33b598aeb22a8baeb482f8f328af10203cdba90f5d3c9a6e186b34b0?d=identicon)[lifeofspring](/maintainers/lifeofspring)

---

Tags

phplifeofspring

### Embed Badge

![Health badge](/badges/lifeofspring-test/health.svg)

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

###  Alternatives

[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k43.5M5.2k](/packages/larastan-larastan)[dave-liddament/sarb

Provides tools for baselining static analysis results and comparing against that baseline

1651.4M](/packages/dave-liddament-sarb)[letsdrink/ouzo-goodies

Utility classes, test assertions and mocking framework extracted from Ouzo framework.

132617.9k7](/packages/letsdrink-ouzo-goodies)[quizlet/hammock

Hammock is a stand-alone mocking library for Hacklang.

27445.5k](/packages/quizlet-hammock)[doppiogancio/mocked-client

A simple way to mock a client

2174.9k3](/packages/doppiogancio-mocked-client)

PHPackages © 2026

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