hnv / psr-http-uri
There is no license information available for the latest version (2.1.5) of this package.
PSR-7 URI implementation package
2.1.5
2022-11-09 16:36 UTC
Requires
- php: 8.1.*
- hnv/psr-http-helper: 2.0.*
- hnv/psr-http-interfaces: 3.0.*
Requires (Dev)
- friendsofphp/php-cs-fixer: dev-master
- phpunit/php-code-coverage: dev-main
- phpunit/php-file-iterator: dev-main
- phpunit/php-invoker: dev-main
- phpunit/php-text-template: dev-main
- phpunit/php-timer: dev-main
- phpunit/phpunit: dev-main
- sebastian/cli-parser: dev-main
- sebastian/code-unit: dev-main
- sebastian/code-unit-reverse-lookup: dev-main
- sebastian/comparator: dev-main
- sebastian/complexity: dev-main
- sebastian/diff: dev-main
- sebastian/environment: dev-main
- sebastian/exporter: dev-main
- sebastian/global-state: dev-main
- sebastian/lines-of-code: dev-main
- sebastian/object-enumerator: dev-main
- sebastian/object-reflector: dev-main
- sebastian/recursion-context: dev-main
- sebastian/type: dev-main
- sebastian/version: dev-main
README
build and up all containers
cd docker
docker-compose up -d
installation
go into PHP container
cd docker
docker exec -it psr-http-uri-php sh
run composer
composer install
hotkeys
up all containers and get into php container
./up.sh
down all containers
./down.sh
creating SSH connection to docker PHP container
- go to File | Settings | Tools | SSH Configurations
- add new connection with parameters
- host : 10.10.1.2 (set in docker/docker-compose.yml file)
- port : 22
- user : root
- password : root
adding PHP CLI interpreter
- go to File | Settings | PHP
- CLI Interpreters -> add new with parameters
- SSH configuration: set added before
- PHP executable: /usr/local/bin/php (can be known by running "which php" in command line inside PHP container)
- Path mapping -> add new with parameters
- Local path : PHPStorm project root
- Remote path : /var/www/html
register tests framework
- go to File | Settings | PHP | Test Frameworks
- add new configuration type (PHPUnit Local)
- Use composer autoloader
- Path to script : local path to composer autoloader file (autoload.php)
create PHPUnit run configuration
- go to Run | Edit Configurations
- add new, using PHPUnit template
- Test scope : Directory
- Directory : local path to project "tests" directory
- Interpreter : PHP remote interpreter, added before
RUNNING TESTS
- fire Run | Run
- read