Skip to content
/ php-skeleton Public template

Skelleton for php projects with github actions and docker for local work

License

Notifications You must be signed in to change notification settings

otis22/php-skeleton

Repository files navigation

php skeleton

Skeleton for creating small php packages with static analyzing and unit testing

GitHub CI Autofix Travis CI Coverage Status

Local work

For run all tests

make all

or connect to terminal

make exec

or use built in php server http://localhost:8080

# start server on 8080 port
make serve 
# custom port 8081
make serve PORT=8081

Dafault php version is 8.2. Use PHP_VERSION= for using custom version.

make all PHP_VERSION=8.0
# run both 
make all PHP_VERSION=7.4 && make all PHP_VERSION=8.0

all commands

# composer install
make install
# composer install with --no-dev
make install-no-dev
# check code style
make style
# fix code style
make style-fix
# run static analyze tools
make static-analyze
# run unit tests
make unit
#  check coverage
make coverage

Autofix Action

Github Action .github/workflows/AUTOFIX.yml commit fixes to your repo.

Generate Access Token and add token to repo Settings/Secrets/Actions secrets with name ACCESS_TOKEN.

Or delete AUTOFIX.yml file.

Adopt for you

  • Click on Use template button
  • Put your code to src/ tests/ directory
  • Delete config files for unused CI systems
  • Change project data in composer.json, README and Makefile

Comments

About

Skelleton for php projects with github actions and docker for local work

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published