PHPackages                             chikugoy/sample-composer-library - 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. chikugoy/sample-composer-library

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

chikugoy/sample-composer-library
================================

composer library sample

v1.0.4(4y ago)04MITPHPPHP &gt;=5.6

Since May 10Pushed 4y ago1 watchersCompare

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

READMEChangelog (5)DependenciesVersions (5)Used By (0)

### 概要

[](#概要)

composerのlibraryのサンプル

Packagistでパッケージ配布なし用
--------------------

[](#packagistでパッケージ配布なし用)

社内開発などで使用

### 作成手順

[](#作成手順)

1. composer.jsonを作成ライブラリの内容に応じて編集
2. src以下を作成ライブラリの内容に応じて編集
3. 対象リポジトリのリリースを行う
    1. composer側がバージョン管理していて、リリースバージョンがないリポジトリはエラーとなる為

### 利用手順

[](#利用手順)

1. 利用側のcomposer.jsonに以下を追記（注：requireセクションの前に追記） ```
     "repositories": [
         {
             "type": "git",
             "url": "https://github.com/chikugoy/sample-composer-library"
         }
    ],
    ```
2. 対象リポジトリのインストール ```
    composer require chikugoy/sample-composer-library
    ```
3. composerのキャッシュ削除 ```
    composer dumpautoload
    ```
4. useしてnewで利用可能 ```
    use chikugoy\SampleLibrary;

    ...

    $sampleLibrary = new SampleLibrary('name test', 'desc test2');
    \Cake\Log\Log::debug($sampleLibrary->getName());
    \Cake\Log\Log::debug($sampleLibrary->getDescription());
    ```

Packagistでパッケージ配布
-----------------

[](#packagistでパッケージ配布)

1. 公式サイトへアクセス
    1.
2. アカウント登録
    1. githubアカウントで登録をするとgithubが更新されたら自動でhookされて更新される
3. 上部メニューから「Submit」
4. Repository URLにリポジトリがあるGitHubのURLを入力して「Check」ボタンクリック
5. 続けて問題なければ「Submit」ボタンクリック

ここまで実施した後に「Packagistでパッケージ配布なし用」の利用手順1の手順が不要となります。（他の手順は同様）

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

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

Total

4

Last Release

1462d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0cb37d972b82ab0e2aca300ec80b87cdc3fd776ee5f4a1e6133d629d9796044a?d=identicon)[chikugoy](/maintainers/chikugoy)

---

Top Contributors

[![chikugoy](https://avatars.githubusercontent.com/u/33110654?v=4)](https://github.com/chikugoy "chikugoy (14 commits)")

---

Tags

sample-composer-library

### Embed Badge

![Health badge](/badges/chikugoy-sample-composer-library/health.svg)

```
[![Health](https://phpackages.com/badges/chikugoy-sample-composer-library/health.svg)](https://phpackages.com/packages/chikugoy-sample-composer-library)
```

###  Alternatives

[rezzza/accounting

Accounting utilities

2315.3k](/packages/rezzza-accounting)

PHPackages © 2026

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