https://github.com/jeromegamez/cookiecutter-php
Cookiecutter template for new PHP projects.
https://github.com/jeromegamez/cookiecutter-php
cookiecutter cookiecutter-php cookiecutter-template php
Last synced: 25 days ago
JSON representation
Cookiecutter template for new PHP projects.
- Host: GitHub
- URL: https://github.com/jeromegamez/cookiecutter-php
- Owner: jeromegamez
- License: bsd-3-clause
- Created: 2021-01-17T23:53:28.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-09-05T21:26:41.000Z (9 months ago)
- Last Synced: 2025-03-31T22:41:29.655Z (2 months ago)
- Topics: cookiecutter, cookiecutter-php, cookiecutter-template, php
- Language: PHP
- Homepage:
- Size: 99.6 KB
- Stars: 8
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Cookiecutter PHP
[Cookiecutter] template to kickstart new PHP projects.
## Features
* Automated [Composer] Setup
* Testing setup with [PHPStan] and [PHPUnit] (`composer test`)
* Ready-to-go GitHub Actions## Quickstart
[Install Cookiecutter][Cookiecutter Installation Docs]:
```shell
$ pip install -U cookiecutter
# Or, on a mac with Homebrew
$ brew install cookiecutter
```Generate a new PHP project:
```shell
$ cookiecutter gh:jeromegamez/cookiecutter-php
```## Demo
[](https://asciinema.org/a/385151)
## User config
If you use this (or other) Cookiecutters a lot, you can override the defaults by having
a `.cookiecutterrc` file in your home directory:```yml
default_context:
full_name: "My full name"
email: "[email protected]"
github_username: "mygithubusername"
abbreviations:
php: https://github.com/jeromegamez/cookiecutter-php
```You can find more information at https://cookiecutter.readthedocs.io/en/latest/advanced/user_config.html
[Composer]: https://getcomposer.org/
[Cookiecutter]: https://github.com/cookiecutter/cookiecutter/
[Cookiecutter Installation Docs]: https://cookiecutter.readthedocs.io/en/latest/installation.html
[PHPStan]: https://phpstan.org/
[PHPUnit]: https://phpunit.de/