GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - jeromegamez/cookiecutter-php: Cookiecutter template for new PHP projects.

BranchesTags
Open more actions menu

Latest commit

 

History

177 Commits
177 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
hooks
hooks
 
 
tests
tests
 
 
{{cookiecutter.project_slug}}
{{cookiecutter.project_slug}}
 
 
.editorconfig
.editorconfig
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
build.xml
build.xml
 
 
cookiecutter.json
cookiecutter.json
 
 
renovate.json
renovate.json
 
 

Repository files navigation

Cookiecutter PHP

Cookiecutter template to kickstart new PHP projects.

Features

  • Automated Composer Setup
  • Testing and linting setup with PHPStan, PHPUnit, Rector, PHP CS Fixer, Roave BC Check, and Composer Normalize (composer test:all)
  • Ready-to-go GitHub Actions

Quickstart

Install Cookiecutter:

$ pip install -U cookiecutter
# Or, on a mac with Homebrew
$ brew install cookiecutter

Generate a new PHP project:

$ cookiecutter gh:jeromegamez/cookiecutter-php

Manual template checks

Use ant to generate test projects locally (non-interactive):

$ ant -f build.xml generate-test-project
$ ant -f build.xml generate-test-project-fixture

Generated output:

  • tests/generated/my-library (from generate-test-project, using defaults from cookiecutter.json)
  • tests/generated/example-tools-library (from generate-test-project-fixture, using explicit fixture values)

Each target cleans tests/generated before generating output.

Demo

asciicast

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:

default_context:
    full_name: "My full name"
    email: "[email protected]"
    github_username: "mygithubusername"
    github_repository_owner: "mygithubusername-or-org"
abbreviations:
    php: https://github.com/jeromegamez/cookiecutter-php

github_repository_owner defaults to github_username and can be used when the repository lives under an organization while sponsor/funding metadata should still use your personal username.

You can find more information at https://cookiecutter.readthedocs.io/en/latest/advanced/user_config.html

About

Cookiecutter template for new PHP projects.

Topics

cookiecuttercookiecutter-phpcookiecutter-templatephp

Resources

Readme
MIT license

Code of conduct

Code of conduct
Activity

Stars

11 stars

Watchers

2 watching

Forks

1 fork
Report repository

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.