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

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