hnv / psr-http-interfaces
PSR-7, PSR-15, PSR-17, PSR-18 interfaces package
Installs: 64
Dependents: 3
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 1
pkg:composer/hnv/psr-http-interfaces
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