PHPackages                             jpchateau/prototype-php-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. jpchateau/prototype-php-library

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

jpchateau/prototype-php-library
===============================

Quickly initiate the development of a new PHP library

1.6.1(5y ago)058MITMakefilePHP ^7.3CI failing

Since Oct 13Pushed 5y ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (9)Used By (0)

PHP Library Prototype [![Build Status](https://camo.githubusercontent.com/8774216cbe963c8e87520332dc0d3024f280c69a2d4c4f2ebdfc6ee6100d8bed/68747470733a2f2f7472617669732d63692e6f72672f6a70636861746561752f7068702d70726f746f747970652d6c6962726172792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jpchateau/php-prototype-library)
==================================================================================================================================================================================================================================================================================================================================================

[](#php-library-prototype-)

*PHP Library Prototype is a tool to quickly initiate the development of a new PHP library.*

Features
--------

[](#features)

The aim of this prototype is to save time when starting to develop a PHP library. It will:

- Download and install basic files - a class and its test class with proper namespaces
- Install popular QA tools: phpunit, phpstan and phpcs
- Generate basic .gitignore and README files

Please note that `.gitignore` file is based upon [gitignore.io](https://www.gitignore.io/) API.

Requirements
------------

[](#requirements)

- PHP &gt;= 7.3
- php-xml extension
- php-mbstring extension
- [Composer](https://getcomposer.org/download/)

Check the [PHP roadmap](https://www.php.net/supported-versions.php) to see the PHP versions supported by this library.

Usage
-----

[](#usage)

Creating a library is a simple two-step process.

1. First, create a project from this prototype. Replace `MyDirectory` with your own value to create the project and move into the created directory:

```
$ composer create-project jpchateau/prototype-php-library MyDirectory && cd $_
```

2. Then, run the install command to complete the process. Replace `MyCompany` and `MyProject` with your own values:

```
$ make company=MyCompany project=MyProject install
```

You are ready to develop!
Don't forget to pick up a license ;)

Tests
-----

[](#tests)

```
$ make tests
```

QA Tools
--------

[](#qa-tools)

```
$ bin/phpcs src/ --standard=PSR2
$ bin/phpstan analyse -l 7 src/
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

Recently: every ~68 days

Total

8

Last Release

1993d ago

PHP version history (4 changes)1.0.0PHP &gt;=5.5.0

1.3.0PHP ^7.1

1.4.0PHP ^7.2

1.6.0PHP ^7.3

### Community

Maintainers

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

---

Top Contributors

[![jpchateau](https://avatars.githubusercontent.com/u/1615254?v=4)](https://github.com/jpchateau "jpchateau (17 commits)")

---

Tags

phplibrary

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/jpchateau-prototype-php-library/health.svg)

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

PHPackages © 2026

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