PHPackages                             greeny/package-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. greeny/package-template

ActiveLibrary

greeny/package-template
=======================

Core files of any PHP package for easy setup

0.1.0(9y ago)520MITPHP

Since Apr 7Pushed 9y ago2 watchersCompare

[ Source](https://github.com/greeny/package-template)[ Packagist](https://packagist.org/packages/greeny/package-template)[ RSS](/packages/greeny-package-template/feed)WikiDiscussions master Synced 2mo ago

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

Package template for PHP
========================

[](#package-template-for-php)

This is a template for PHP library. It features pre-installed libraries:

- nette/tester
- slevomat/coding-standard
- consistence/coding-standard
- jakub-onderka/php-parallel-lint
- phpstan/phpstan

It also has .travis.yml file for fast setup.

Made for PHP 7.1 and tested on it, may work on earlier versions with some modifications to enabled Sniffs and PHPStan tests.

Starting new package
--------------------

[](#starting-new-package)

1. create project

    composer create-project greeny/package-template YourAwesomeProjectName
2. change composer.json to provide correct information about your package / vendor name, autoloading settings, description and author
3. write code to src folder
4. test your code using `composer build`
5. setup travis integration (enable travis testing for your repository, there is already .travis.yml file present)
6. profit

Feel free to use this and/or suggest changes. I am open to anything.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

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

Unknown

Total

1

Last Release

3325d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3734204?v=4)[Tomáš Blatný](/maintainers/greeny)[@greeny](https://github.com/greeny)

---

Top Contributors

[![greeny](https://avatars.githubusercontent.com/u/3734204?v=4)](https://github.com/greeny "greeny (10 commits)")

---

Tags

packagephptemplate

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/greeny-package-template/health.svg)

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

PHPackages © 2026

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