https://github.com/vukanac/ci-base-php
CI with PHP and TravisCI
https://github.com/vukanac/ci-base-php
ci ci-cd codecoverage php phpcs-phpcbf phpunit travis-ci
Last synced: about 2 months ago
JSON representation
CI with PHP and TravisCI
- Host: GitHub
- URL: https://github.com/vukanac/ci-base-php
- Owner: vukanac
- License: mit
- Created: 2018-05-28T16:36:09.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-02-27T09:52:23.000Z (about 5 years ago)
- Last Synced: 2025-02-10T15:17:46.184Z (4 months ago)
- Topics: ci, ci-cd, codecoverage, php, phpcs-phpcbf, phpunit, travis-ci
- Language: PHP
- Size: 235 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Project: CI Base PHP with TravisCI
[](https://travis-ci.org/vukanac/ci-base-php)
[](https://codecov.io/gh/vukanac/ci-base-php)
[](https://coveralls.io/github/vukanac/ci-base-php?branch=master)
[](https://www.codefactor.io/repository/github/vukanac/ci-base-php/overview/master)## Description
> CI with PHP and TravisCI
Code is hosted on *GitHub* and tests are run on *TravisCI* on every push to `master` branch.
The code coverage reports are uploaded to [codecov.io](https://codecov.io/gh/vukanac/ci-base-php).
This is base set of tools that help writing PHP code.
They are not obligatory but they are great help!
## Test and Development
### Infection
* https://infection.github.io
Install:
composer global require infection/infection
or
brew install infection
Run:
infection
### PHP CS/CBF/CPD tools
They will help you to write code with consistent style (quotation, indentation, unused variable, ...).
* phpcs
* phpcbf
* phpcpd### PHPstan ##
The PHP Static Analysis tool.
$ vendor/bin/phpstan analyse src tests
Added strict rules with:
* https://github.com/thecodingmachine/phpstan-strict-rules
#### PHP psalm
composer require --dev vimeo/psalm
./vendor/bin/psalm --init
./vendor/bin/psalm#### Ceveralls (with php)
composer require --dev php-coveralls/php-coveralls
pecl install xdebug
./vendor/bin/phpunit### The best use
Install plugins to Sublime Text 3:
* SublimeLinter
* SublimeLinter-phpcs
* SublimeLinter-phpcs-formatterOptional:
* DocBlockr
* FileManager
* GitGutter
* Pretty JSON
* SublimeLinter-annotations## Install
git clone https://github.com/vukanac/ci-base-php.git phpstarter
cd phpstarter
composer install## Start dev
composer test
or
composer ci
Watching for changes:
./vendor/bin/phpunit-watcher --watch## Test
composer test
./vendor/bin/phpunit## License
MIT
[](https://app.fossa.io/projects/git%2Bgithub.com%2Fvukanac%2Fci-base-php?ref=badge_large)
Vladimir Vukanac