hnv / psr-http-interfaces
There is no license information available for the latest version (3.0.5) of this package.
PSR-7, PSR-15, PSR-17, PSR-18 interfaces package
3.0.5
2022-11-09 16:45 UTC
Requires
- php: 8.1.*
Requires (Dev)
- friendsofphp/php-cs-fixer: dev-master
README
Installation
cd docker
docker compose up -d
docker exec -it psr-http-interfaces-php sh
or you can use "make" utility
apt install make
make up # up all containers and get into php container
make down # down all containers
install all dependencies
# get into php container
composer install
creating SSH connection to docker PHP container
- go to File | Settings | Tools | SSH Configurations
- add new connection with parameters
- host : 10.10.0.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
testing
curl 10.10.0.3/tests/index.php