Skip to content
/ template-php Public template

A starter template to quickly scaffold new PHP projects

License

Notifications You must be signed in to change notification settings

smudger/template-php

Repository files navigation

PHP Project Template smudger

A starter template for scaffolding new PHP projects quickly. Includes configuration for the following tooling.

  • PHP CS Fixer

  • PHPUnit

  • PHPStan

  • Deptrac

  • Security Checker

  • Circle CI

  • Git Hooks

Getting Started

To quickly scaffold a new PHP project from this template, simply find and replace REPO_NAME with the name of the new project and link your repository to Circle CI.

Project Dependencies

You will need to install the project dependencies by running the following command.

docker-compose run app composer install

Running Tests

The tests can be run using the following command.

docker-compose run app composer test

Git Hooks

This project uses git hooks to enforce a consistent branch and commit naming convention. To enable these hooks during local development you will need to run the following command.

git config core.hooksPath ./.githooks

Branch names should obey the following regex.

^(feature|fix)\/#[0-9]+-[a-zA-Z0-9-]+$

Commits will then automatically be prepended with the issue number specified after the # in the branch name.

About

A starter template to quickly scaffold new PHP projects

Resources

License

Stars

Watchers

Forks

Packages

No packages published