This package is abandoned and no longer maintained. The author suggests using the ramsey/php-library-starter-kit package instead.

A starter kit for quickly setting up a new PHP library package.

Fund package maintenance!

Installs: 296

Dependents: 0

Suggesters: 0

Security: 0

Stars: 74

Watchers: 6

Forks: 16

Open Issues: 0


2.1.4 2020-05-29 18:34 UTC

This package is auto-updated.

Last update: 2021-02-25 00:56:18 UTC


A starter kit for quickly setting up a new PHP library package.

Source Code Download Package PHP Programming Language Build Status Codecov Code Coverage Psalm Type Coverage Read License Package downloads on Packagist Chat with the maintainers


ramsey/php-library-starter-kit is a package that may be used to generate a basic PHP library project directory structure, complete with many of the starting files (i.e. README, LICENSE, GitHub issue templates, PHPUnit configuration, etc.) that are commonly found in PHP libraries. You may use the project directory that's created as a starting point for creating your own PHP libraries.

This project adheres to a Contributor Code of Conduct. By participating in this project and its community, you are expected to uphold this code.


composer create-project ramsey/php-library-starter-kit YOUR-PROJECT-NAME

Running this command will create a new repository containing the same files and structure as this repository. Afterward, it will run the Ramsey\Dev\LibraryStarterKit\Wizard::start() method to set up the project, which will walk you through a series of questions and make changes to files based on your answers. When complete, it will remove the ./src/LibraryStarterKit and ./tests/LibraryStarterKit directories, leaving everything else in place with an initial commit.


Contributions are welcome! To contribute, please familiarize yourself with CONTRIBUTING.md.


Why did you include package/tool x and not y?

I created this project starter kit for my own uses, and these are the common files, packages, and tools I use in my PHP libraries. If you like what you see, feel free to use it. If you like some of it but not all, fork it and customize it to fit your needs. I hope you find it helpful!

Copyright and License

The ramsey/php-library-starter-kit library is copyright © Ben Ramsey and licensed for use under the MIT License (MIT). Please see LICENSE for more information.