Manual
Basic
Interactive shell php -a
Starting the web server php -S 0.0.0.0:8000 -t foo/
Debugging
| 12
 3
 4
 5
 
 | zend_extension="php_xdebug-2.9.8-7.3-vc15-x86_64.dll"xdebug.remote_enable=1
 xdebug.remote_host=127.0.0.1
 ;xdebug.remote_port=9000
 xdebug.remote_autostart=1
 
 | 
remote_autostart会有一定的性能损耗,禁用此选项后可通过XDEBUG_SESSION_START=session_name启动调试会话。
Step Debugging
DBGP - A common debugger protocol specification
FPM + Nginx
| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 
 | server {listen 80;
 server_name xiongjiaxuan.com;
 access_log /var/log/nginx/access.log;
 error_log /var/log/nginx/error.log;
 
 root /www/public;
 
 location / {
 index index.html;
 }
 
 location ~ [^/]\.php(/|$) {
 fastcgi_split_path_info ^(.+?\.php)(/.*)$;
 if (!-f $document_root$fastcgi_script_name) {
 return 404;
 }
 
 fastcgi_param HTTP_PROXY "";
 
 fastcgi_pass unix:/run/php-fpm/www.sock;
 fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
 fastcgi_index index.php;
 
 include fastcgi_params;
 }
 }
 
 | 
Web
Composer
composer -V 查看版本
composer update 自动升级