An open API service indexing awesome lists of open source software.

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.

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

[![asciicast](https://asciinema.org/a/385151.svg)](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/