PHPackages                             jorisros/library-boilerplate - 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. jorisros/library-boilerplate

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

jorisros/library-boilerplate
============================

This is a boilerplate for creating new libraries.

v1.3(6y ago)014MITPHPCI failing

Since Jan 15Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/jorisros/library-boilerplate)[ Packagist](https://packagist.org/packages/jorisros/library-boilerplate)[ RSS](/packages/jorisros-library-boilerplate/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

library-boilerplate
===================

[](#library-boilerplate)

This is a boilerplate for libraries that have to be written in PHP, it contains a setup for:

- PHPunit tests
- Code sniffer integration

Usage
-----

[](#usage)

This boilerplate should be installed by composer, with the following command you use the template

```
composer create-project jorisros/library-boilerplate

```

This create a new directory with all the needed files directly there. There is no git involved any more, you have to setup git for your project seperatly.

Run commands
------------

[](#run-commands)

There are commands specified with composer to make it more user friendly (my bad memory)

### Run the tests

[](#run-the-tests)

You can run the tests with ease by following command: `composer test`

### Run PHP codesniffer command

[](#run-php-codesniffer-command)

You can call the code sniffer command with ease by following command: `composer cs`

### Run phan

[](#run-phan)

You can run phan by the following command: `composer phan`

Docker
------

[](#docker)

### Run the phpunit test inside docker container

[](#run-the-phpunit-test-inside-docker-container)

```
docker-compose exec php composer test

```

TODO
----

[](#todo)

- Add project to packagist
- Integrate setup for running tests on travis
- Integrate setup for running tests on bitbucket pipeline
- Integrate setup for running tests on Github actions
- Add phan to the project

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance48

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community7

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

Total

4

Last Release

2226d ago

### Community

Maintainers

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

---

Top Contributors

[![jorisros](https://avatars.githubusercontent.com/u/752283?v=4)](https://github.com/jorisros "jorisros (23 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/jorisros-library-boilerplate/health.svg)

```
[![Health](https://phpackages.com/badges/jorisros-library-boilerplate/health.svg)](https://phpackages.com/packages/jorisros-library-boilerplate)
```

PHPackages © 2026

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