Skip to content

yapro/helpers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Helpers

Classes for solving the most common problems + functions that does not exist in native PHP.

lib tests

Tests

docker build -t yapro/helpers:latest -f ./Dockerfile ./
docker run --rm -v $(pwd):/app yapro/helpers:latest bash -c "cd /app \
  && composer install --optimize-autoloader --no-scripts --no-interaction \
  && /app/vendor/bin/phpunit /app/tests --stderr --stop-on-incomplete --stop-on-failure --stop-on-warning --fail-on-warning --stop-on-risky --fail-on-risky -v /app/tests"

Dev

docker build -t yapro/helpers:latest -f ./Dockerfile ./
docker run -it --rm --net=host -v $(pwd):/app -w /app yapro/helpers:latest bash
composer install -o
PHP_IDE_CONFIG="serverName=common" XDEBUG_SESSION=common XDEBUG_MODE=debug XDEBUG_CONFIG="client_port=9003 max_nesting_level=200" /app/vendor/bin/phpunit /app/tests

Если с xdebug что-то не получается, напишите: php -dxdebug.log='/tmp/xdebug.log' и смотрите в лог.