PHPackages                             sokil/php-library-starter-kit - 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. sokil/php-library-starter-kit

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

sokil/php-library-starter-kit
=============================

Starter kit for creating composer compatible library

0.1.0(6y ago)539MITPHPPHP ^7.3CI failing

Since Feb 22Pushed 5y ago1 watchersCompare

[ Source](https://github.com/sokil/php-library-starter-kit)[ Packagist](https://packagist.org/packages/sokil/php-library-starter-kit)[ Docs](https://github.com/sokil/php-library-starter-kit)[ RSS](/packages/sokil-php-library-starter-kit/feed)WikiDiscussions master Synced today

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

PHP Library Starter Kit
=======================

[](#php-library-starter-kit)

Starter kit for creating composer compatible library will help to add boilerplate code. Clone project and start library development with already configured tests, code coverage, code style and quality tools, betchmarking and CI.

[![Total Downloads](https://camo.githubusercontent.com/52ddae112c121a33549a37439c0ac17e088896c0f812e73355b6a070a132e84e/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736f6b696c2f7068702d6c6962726172792d737461727465722d6b69742e737667)](https://packagist.org/packages/sokil/php-library-starter-kit)[![Build Status](https://camo.githubusercontent.com/da8878f35e2dc419d2a11e409a96060b6dc636221a2322319fc330e71c7fb1d8/68747470733a2f2f7472617669732d63692e6f72672f736f6b696c2f7068702d6c6962726172792d737461727465722d6b69742e706e673f6272616e63683d6d61737465722632)](https://travis-ci.org/sokil/php-library-starter-kit)[![Coverage Status](https://camo.githubusercontent.com/78f41dd093f51050b3dbd98b2d5a2927ce8b4e241fe5f8b1ae28cdb8b0fff097/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f736f6b696c2f7068702d6c6962726172792d737461727465722d6b69742f62616467652e706e67)](https://coveralls.io/r/sokil/php-library-starter-kit)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/e9ebd6c02e36dee3b1f8c4accd30d3df933c0ddcac66d4fd1cc45393ce4bcfe8/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f736f6b696c2f7068702d6c6962726172792d737461727465722d6b69742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sokil/php-library-starter-kit/?branch=master)[![Code Climate](https://camo.githubusercontent.com/eeebc66693cebbff7f157192cbfb5baed5028475f96a1d0ad0ad917f324a8c10/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f736f6b696c2f7068702d6c6962726172792d737461727465722d6b69742f6261646765732f6770612e737667)](https://codeclimate.com/github/sokil/php-library-starter-kit)

Creating new project
--------------------

[](#creating-new-project)

Begin your new library with starter kit. Just create project:

```
composer create-project sokil/php-library-starter-kit my-php-library --prefer-source

```

Or you can just clone repo:

```
git clone https://github.com/sokil/php-library-starter-kit.git my-php-library

```

Composer commands
-----------------

[](#composer-commands)

- "test": start unit tests
- "cover": generate code coverage report to file
- "coveralls": send code coverage report to `coveralls`
- "check-style": check code style by PSR2 rules
- "fix-style": automatically fix style by PSR2 rules
- "bench": run `phpbench` benchmarks,
- "infection": run mutation tests

External tools
--------------

[](#external-tools)

There are some usefull tools for library development, but they written on PHP &gt; 7.0 and this library by default configured for PHP "&gt;=5.3 || ^7.0". So this tools only suggested to be installed or may be installed globally as phar packages or global composer requirement.

### PHPBench

[](#phpbench)

Read more at . There is some configuration in `phpbench.json`. Also there is composer script to run infection: `composer bench`

### Infection

[](#infection)

Read more at . There is some configuration in `infection.json.dist`. Also there is composer script to run infection: `composer infection`

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Total

4

Last Release

2355d ago

PHP version history (2 changes)0.0.1PHP &gt;=5.3 || ^7.0

0.1.0PHP ^7.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/902e21ecf6517341b1f2a3c2f93a3eb115396fc6524effaeabc816b481909e64?d=identicon)[sokil](/maintainers/sokil)

---

Top Contributors

[![sokil](https://avatars.githubusercontent.com/u/1829948?v=4)](https://github.com/sokil "sokil (39 commits)")

---

Tags

boilerplatecomposerpackagistphpphp-libraryphp-packageskeletonstarter-kitphpstarter-kit

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/sokil-php-library-starter-kit/health.svg)

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

###  Alternatives

[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21421.6k](/packages/imanghafoori-laravel-anypass)

PHPackages © 2026

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