PHPackages                             chillerlan/php-library-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. chillerlan/php-library-template

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

chillerlan/php-library-template
===============================

A PHP Library template/boilerplate.

012PHPCI passing

Since Mar 30Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/chillerlan/php-library-template)[ Packagist](https://packagist.org/packages/chillerlan/php-library-template)[ RSS](/packages/chillerlan-php-library-template/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

chillerlan/php-library-template
===============================

[](#chillerlanphp-library-template)

A template/boilerplate for PHP libraries.

[![PHP Version Support](https://camo.githubusercontent.com/089811b17ac3a8c83922aa9cc85067b21d2d019749c2c8abe64e18fd8fcc71b7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6368696c6c65726c616e2f7068702d6c6962726172792d74656d706c6174653f6c6f676f3d70687026636f6c6f723d383839324246266c6f676f436f6c6f723d666666)](https://www.php.net/supported-versions.php)[![Packagist version](https://camo.githubusercontent.com/902052253e5817a08199315a1ae0ec6d4fa6239f1d95f70b90afed0a679ad915/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6368696c6c65726c616e2f7068702d6c6962726172792d74656d706c6174652e7376673f6c6f676f3d7061636b6167697374266c6f676f436f6c6f723d666666)](https://packagist.org/packages/chillerlan/php-library-template)[![License](https://camo.githubusercontent.com/563b19958aefd18a85f70c73c048ee361ba876d8e57077adbaecda8f5f795bf0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6368696c6c65726c616e2f7068702d6c6962726172792d74656d706c617465)](https://github.com/chillerlan/php-library-template/blob/main/LICENSE)[![Continuous Integration](https://camo.githubusercontent.com/0849cdf2df98f9beadba221edab369a5bab2fa60668f8cd3e27c5df9498cb320/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6368696c6c65726c616e2f7068702d6c6962726172792d74656d706c6174652f63692e796d6c3f6272616e63683d6d61696e266c6f676f3d676974687562266c6f676f436f6c6f723d666666)](https://github.com/chillerlan/php-library-template/actions/workflows/ci.yml?query=branch%3Amain)[![CodeCov](https://camo.githubusercontent.com/52369a12c4f15113d840c64672e6675dae71ccbffcab9826b299413b51577226/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f6368696c6c65726c616e2f7068702d6c6962726172792d74656d706c6174652f6d61696e3f6c6f676f3d636f6465636f76266c6f676f436f6c6f723d666666)](https://codecov.io/github/chillerlan/php-library-template/tree/main)[![Codacy](https://camo.githubusercontent.com/41049671693e965edd997c6144e8a0da6208bf08f02a53893d0c3ecf7c10ae99/68747470733a2f2f696d672e736869656c64732e696f2f636f646163792f67726164652f39313730323232323961386634333265396131353438316562663063353837632f6d61696e3f6c6f676f3d636f64616379266c6f676f436f6c6f723d666666)](https://app.codacy.com/gh/chillerlan/php-library-template/dashboard?branch=main)[![Packagist downloads](https://camo.githubusercontent.com/87432120c7253526e193548a28f636a574f88746ea6568638175c8af411e50ba/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6368696c6c65726c616e2f7068702d6c6962726172792d74656d706c6174652e7376673f6c6f676f3d7061636b6167697374266c6f676f436f6c6f723d666666)](https://packagist.org/packages/chillerlan/php-library-template/stats)

Overview
--------

[](#overview)

### Features

[](#features)

- [GitHub Actions](https://github.com/chillerlan/php-library-template/actions) runner
- [Composer](https://getcomposer.org) dependency management
- [PHPUnit](https://phpunit.de) unit tests
- [PHPStan](https://github.com/phpstan/phpstan) static analysis
- [PHPCS](https://github.com/PHPCSStandards/PHP_CodeSniffer) coding standard analyzer
- [PHPMD](https://phpmd.org) mess detector
- [Codecov](https://codecov.io) code coverage analysis
- [Codacy](https://www.codacy.com) code quality analysis
- [phpDocumentor](https://www.phpdoc.org) auto generated API docs
- [ReadTheDocs](https://readthedocs.org) documentation builder

### Requirements

[](#requirements)

- PHP 8.4+

Documentation
-------------

[](#documentation)

- The user manual is at  ([sources](https://github.com/chillerlan/php-library-template/tree/main/docs))
- An API documentation created with [phpDocumentor](https://www.phpdoc.org/) can be found at

Disclaimer
----------

[](#disclaimer)

Use at your own risk!

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance60

Regular maintenance activity

Popularity3

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/ada3d048807a11e536645fb87da881170b18f34c0c61fa09e34807c5d79e0b89?d=identicon)[codemasher](/maintainers/codemasher)

---

Top Contributors

[![codemasher](https://avatars.githubusercontent.com/u/592497?v=4)](https://github.com/codemasher "codemasher (18 commits)")

---

Tags

phpphp-library-templatephp8template-repository

### Embed Badge

![Health badge](/badges/chillerlan-php-library-template/health.svg)

```
[![Health](https://phpackages.com/badges/chillerlan-php-library-template/health.svg)](https://phpackages.com/packages/chillerlan-php-library-template)
```

PHPackages © 2026

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