PHP code example of xiaoyangguang / aop
1. Go to this page and download the library: Download xiaoyangguang/aop library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
xiaoyangguang / aop example snippets
shell
php start.php start
curl http://127.0.0.1:8787
此时控制台打印前置和后置切面函数打印值
string(12) "beforeAdvice"
string(11) "afterAdvice"