Add phpstorm documentation with Docker and MacOS
BIN
doc/images/ps-mac-php-cli-add-interpreter.png
Normal file
|
After Width: | Height: | Size: 413 KiB |
BIN
doc/images/ps-mac-php-interpreter.png
Normal file
|
After Width: | Height: | Size: 520 KiB |
BIN
doc/images/ps-mac-php-phpunit-config.png
Normal file
|
After Width: | Height: | Size: 403 KiB |
BIN
doc/images/ps-mac-php-phpunit-demo.png
Normal file
|
After Width: | Height: | Size: 594 KiB |
BIN
doc/images/ps-mac-php-phpunit.png
Normal file
|
After Width: | Height: | Size: 562 KiB |
BIN
doc/images/ps-mac-php-xdebug-demo.png
Normal file
|
After Width: | Height: | Size: 559 KiB |
BIN
doc/images/ps-mac-php-xdebug-proxy.png
Normal file
|
After Width: | Height: | Size: 461 KiB |
BIN
doc/images/ps-mac-php-xdebug-server.png
Normal file
|
After Width: | Height: | Size: 525 KiB |
BIN
doc/images/ps-mac-php-xdebug.png
Normal file
|
After Width: | Height: | Size: 646 KiB |
71
doc/phpstorm-macosx.md
Normal file
@@ -0,0 +1,71 @@
|
||||
# Configure PHPStorm with MacOS
|
||||
|
||||
Inspired from this following links :
|
||||
|
||||
- [Running PHPUnit Tests in PhpStorm with Docker](https://www.youtube.com/watch?v=I7aGWO6K3Ho)
|
||||
- [All hail Xdebug and lets let var dump die](http://jamescowie.me/blog/2016/12/all-hail-xdebug-and-lets-let-var-dump-die/)
|
||||
|
||||
## Edit PHP configuration
|
||||
|
||||

|
||||
|
||||
## Add a PHP interpreter
|
||||
|
||||

|
||||
|
||||
## Configure PHPUnit
|
||||
|
||||

|
||||
|
||||
### Add test configuration
|
||||
|
||||

|
||||
|
||||
### PHPUnit Demo
|
||||
|
||||

|
||||
|
||||
## Configure XDebug
|
||||
|
||||
### Edit `etc/php.ini` file
|
||||
|
||||
Add this following lines :
|
||||
|
||||
```sh
|
||||
[xdebug]
|
||||
xdebug.remote_host = 10.254.254.254
|
||||
xdebug.remote_port = 9000
|
||||
xdebug.remote_autostart=1
|
||||
xdebug.idekey = PHPSTORM
|
||||
xdebug.remote_enable = 1
|
||||
xdebug.remote_connect_back = 0
|
||||
xdebug.profiler_enable = 1
|
||||
```
|
||||
|
||||
### Check Debug section
|
||||
|
||||

|
||||
|
||||
### Add a debug server
|
||||
|
||||

|
||||
|
||||
### Configure XDebug Proxy
|
||||
|
||||
Create an IP Alias :
|
||||
|
||||
```sh
|
||||
sudo ifconfig en0 alias 10.254.254.254 255.255.255.0
|
||||
```
|
||||
|
||||

|
||||
|
||||
To delete an IP Alias :
|
||||
|
||||
```sh
|
||||
sudo ifconfig en0 -alias 10.254.254.254
|
||||
```
|
||||
|
||||
### XDebug Demo
|
||||
|
||||

|
||||