跳到主要内容

PHP初体验

1. PHP安装

mac: brew install php composer

2. 使用

composer install
composer test
composer lint
composer analyze
  1. 起一个 Playground 沙箱手动验证

npx @wp-playground/cli@latest server --auto-mount --blueprint=./.playground/blueprint.json 打开 http://localhost:9400 → 直接落到 ShieldComment Dashboard → 在文章评论里贴一段含 bit.ly/xxx 的内容 → 应该被标记 spam → Logs 页能看到 reason。