Skip to content

Latest commit

 

History

140 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-package

Github Actions Status

Prerequisites

  • Linux, Macos, WSL
  • PHP >=8.2
  • Xdebug
  • Make
  • Git

Addons

Use http://psysh.org/

Setup

Setup SSH before clone:

git clone git@github.com:hexlet-boilerplates/php-package.git
cd php-package

make install

Run linter

make lint

See config mago.toml

Run tests

make test

Test Coverage

make test-coverage
# see ./build/logs/clover.xml
  • the set of files under coverage is declared in phpunit.xml
  • the threshold is COVERAGE_MIN in the Makefilemake test-coverage exits with an error below it, so the PHP CI badge stays green only while coverage holds
  • requires the Xdebug or PCOV extension, otherwise PHPUnit reports No code coverage driver available

Hexlet Ltd. logo

This repository is created and maintained by the team and the community of Hexlet, an educational project. Read more about Hexlet.

See most active contributors on hexlet-friends.

About

No description, website, or topics provided.

Resources

Stars

90 stars

Watchers

12 watching

Forks

Used by

Contributors

Languages