janisbiz / heredoc
A helper for outputting values to PHP heredoc
Installs: 3 415
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=5.6
Requires (Dev)
- jakub-onderka/php-parallel-lint: ^1.0
- phpmd/phpmd: ^2.0
- phpro/grumphp: ^0.14.0
- phpunit/php-code-coverage: ^4.0
- phpunit/phpunit: ^5.0
- squizlabs/php_codesniffer: ^3.0
- wimg/php-compatibility: ^9.0
This package is auto-updated.
Last update: 2025-01-28 06:29:19 UTC
README
A helper for outputting values to PHP heredoc
Installing
composer require janisbiz/heredoc
Getting started
These instructions will help you set up this helper, so you can use it. As well, there are provided instructions to run tests for the extension.
Using extension
To use helper:
- your class should use trait HeredocTrait
- you should call global function ´heredoc()´
Running tests
There are two ways to run tests:
- By using docker containers:
- Copy
.env.dist
to.env
and adjust defined values for your needs - Execute
docker-compose up -d --build
- Execute
docker-compose exec php-cli composer install
- Execute
docker-compose exec php-cli vendor/bin/phpunit -c phpunit.xml
- Copy
- By using your local php and mysql database environment:
- Ensure, that your php version is
5.6+
- Execute
composer install
- Execute
vendor/bin/phpunit -c phpunit.xml
- Ensure, that your php version is