PHPackages                             spindle/lib-template - 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. spindle/lib-template

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

spindle/lib-template
====================

composer library template

1.0.2(12y ago)118CC0-1.0JavaScriptPHP &gt;=5.3.2

Since Jun 7Pushed 12y agoCompare

[ Source](https://github.com/spindle/spindle-lib-template)[ Packagist](https://packagist.org/packages/spindle/lib-template)[ RSS](/packages/spindle-lib-template/feed)WikiDiscussions master Synced today

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

spindle/lib-template
====================

[](#spindlelib-template)

Composerでライブラリを作るときのオレオレテンプレートです。 CC0-1.0(権利放棄)なので、コピペしても特に連絡やクレジット表示は不要です。

install
-------

[](#install)

```
$ composer create-project spindle/lib-template path/to/project-dir
```

or

```
$ git clone git://github.com/spindle/spindle-lib-template.git path/to/project-dir
$ cd path/to/project-dir
$ rm -rf .git
$ composer install
```

プロジェクトを作り終わったら、gulpを追加。

```
$ sudo yum install nodejs npm
$ sudo npm install -g gulp
$ npm install
```

gitattributesは必要に応じてgitに追加してください。github.comで生成されるzipファイルの中身をカスタマイズできます。

```
$ mv gitattributes .gitattributes
```

パッケージ名を決めて、ファイルを編集しておいてください。

```
$ vim composer.json
$ vim README.md
```

phpunit.xml.distをphpunit.xmlにコピーし、HTMLのカバレッジレポートが出力されるよう設定を変更しておきます。 また、cloverの出力は(ローカル環境では)不要なので、削除しておきます。

development
-----------

[](#development)

### ユニットテスト

[](#ユニットテスト)

```
$ gulp test
```

PHPUnitが起動し、tests/配下のすべてのテストケースを実行します。

### インスペクション

[](#インスペクション)

```
$ gulp inspect
```

`PHP_Depend`および`ApiGen`が起動し、builds/配下へレポートを出力します。 src配下のソースコードについて、APIドキュメントを作成し、コードメトリクスを計測します。

### ファイル変更監視 &amp; 自動テスト

[](#ファイル変更監視--自動テスト)

```
$ gulp server
```

src/およびtests/配下のファイル書き込みを監視し、何か変動があれば自動的にPHPUnitを実行します。 また、  でWebサーバーを立ち上げます。 ここにアクセスすると、生成されたドキュメントやカバレッジレポートを読むことができます。 ファイル書き込みと連動しており、変化があれば自動的にレポートはリロードされます。(livereload)

Continuos Integration &amp; Inspection
--------------------------------------

[](#continuos-integration--inspection)

### travis-ci

[](#travis-ci)

### scrutinizer-ci

[](#scrutinizer-ci)

###  Health Score

26

—

LowBetter than 40% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

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

Total

3

Last Release

4433d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/29f25736eabae4706cb5dc2e47f0f86f93f2343d75edb380c5eedbcb2e494940?d=identicon)[spindle](/maintainers/spindle)

---

Top Contributors

[![hirak](https://avatars.githubusercontent.com/u/835251?v=4)](https://github.com/hirak "hirak (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/spindle-lib-template/health.svg)

```
[![Health](https://phpackages.com/badges/spindle-lib-template/health.svg)](https://phpackages.com/packages/spindle-lib-template)
```

PHPackages © 2026

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