PHPackages                             tfarla/composer-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. tfarla/composer-template

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

tfarla/composer-template
========================

A template for creating composer libraries

0.1.1(8y ago)412[6 PRs](https://github.com/tomodutch/composer-template/pulls)MITPHPPHP ~7.1

Since Apr 2Pushed 3y ago1 watchersCompare

[ Source](https://github.com/tomodutch/composer-template)[ Packagist](https://packagist.org/packages/tfarla/composer-template)[ RSS](/packages/tfarla-composer-template/feed)WikiDiscussions master Synced 2w ago

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

Composer template
=================

[](#composer-template)

[![Packagist](https://camo.githubusercontent.com/26f6b2c5f07065e052ca08966f697cb0e7c789c7e16eeccebdd36d9f588c1269/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f544661726c612f636f6d706f7365722d74656d706c6174652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tfarla/composer-template)[![Travis](https://camo.githubusercontent.com/9872375b11d3ac264be5bd76a4b36789a71edaffe8db426c6ffa780ed4ef4645/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f544661726c612f636f6d706f7365722d74656d706c6174652e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/TFarla/composer-template)[![Coveralls github](https://camo.githubusercontent.com/fe15f825782a3cbbd1150987f652edbaff9e0b18d85a2e33040d085e5cb145c7/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6769746875622f544661726c612f636f6d706f7365722d74656d706c6174652e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/github/TFarla/composer-template)[![Read the Docs](https://camo.githubusercontent.com/7c008ac2c7221f7fb72fe769990dcd8eb126b474f7ef6601df8d206cd4b4ace9/68747470733a2f2f696d672e736869656c64732e696f2f72656164746865646f63732f636f6d706f7365722d74656d706c6174652e7376673f7374796c653d666c61742d737175617265)](http://composer-template.readthedocs.io/en/latest/index.html)[![license](https://camo.githubusercontent.com/7123c32787e013be5a8a13598ad01f562754637ed6141e89b02e85bf16d3e63e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6173686170652f6170697374617475732e7376673f7374796c653d666c61742d737175617265)](https://opensource.org/licenses/MIT)

Making development of composer libraries easy with this cloneable template which includes:

- continuous integration ([travis ci](https://travis-ci.org/))
- code coverage ([coveralls](https://coveralls.io/))
- static analysis ([phpstan](https://github.com/phpstan/phpstan))
- mess detector ([phpmd](https://phpmd.org/))
- testing framework ([phpunit](https://phpunit.de/))
- php code sniffer which enforces the [psr-2 standard](https://www.php-fig.org/psr/psr-2/) ([phpcs](https://github.com/squizlabs/PHP_CodeSniffer))
- composer configuration with [psr-4 autoloading](https://www.php-fig.org/psr/psr-4/)
- [a changelog](https://keepachangelog.com/en/1.0.0/)
- MIT license (not sure about what license you need? )
- documentation using [sphinx](http://www.sphinx-doc.org/en/master/)
- issue and pull request template
- badges from

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

[](#requirements)

- php 7.1 or greater ([supported versions](http://php.net/supported-versions.php))
- python &amp; pip to create documentation
- composer

Installation
------------

[](#installation)

The following command will clone this template and place it in the `my-library` directory

```
composer create-project tfarla/composer-template my-library
```

Composer's [create-project](https://getcomposer.org/doc/03-cli.md#create-project) will also install all dependencies in this template:

```
Installing tfarla/composer-template (dev-master d3249c7ffef021c39e33a4323be4d70899d4d28b)
  - Installing tfarla/composer-template (dev-master master): Cloning master from cache
Created project in my-library
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Generating autoload files
ocramius/package-versions:  Generating version class...
ocramius/package-versions: ...done generating version class
```

Once the download is done you will get the choice to remove the `.git` directory which you should do if you want your own repository.

```
Do you want to remove the existing VCS (.git, .svn..) history? [Y,n]? y
```

Usage
-----

[](#usage)

In order to use this template you'll need to change a few things:

- Change the content in this README file to reflect your library
- Change the content in the `docs/` directory to reflect your library
- Setup [travis-ci](https://travis-ci.org/) (should be plug &amp; play)
- Setup [readthedocs](https://readthedocs.org/) (should be plug &amp; play)
- Setup [coveralls](https://coveralls.io/) (should be plug &amp; play)
- Pick a license  (MIT is good enough for most open source project, but you might want to look at the other options)

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

[](#documentation)

While this README should be enough to get started. Please read the [full documentation](http://composer-template.readthedocs.io/en/latest/index.html) for more details.

Contributing
------------

[](#contributing)

Thanks for reading this far into the README and considering contributing to this project. If you have any questions or suggestions feel free to create an issue.

If you want to modify the code then please follow these steps:

1. Fork it ()
2. Create your feature branch (git checkout -b feature/fooBar)
3. Commit your changes (git commit -am 'Add some fooBar')
4. Push to the branch (git push origin feature/fooBar)
5. Create a new Pull Request

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

2

Last Release

3011d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1735b0d10bcf9f141c5f67e2bda313e678b2f5511423fad931fd54611ff02762?d=identicon)[TFarla](/maintainers/TFarla)

---

Top Contributors

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

---

Tags

composerphptemplate

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/tfarla-composer-template/health.svg)

```
[![Health](https://phpackages.com/badges/tfarla-composer-template/health.svg)](https://phpackages.com/packages/tfarla-composer-template)
```

PHPackages © 2026

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