A trigger for maple system (php)
这是maple框架的触发器,目前只实现了write_to_worker,具体参看maple, (*1)
git clone git@github.com:hushulin/maple.git, (*2)
git clone git@github.com:hushulin/maple.git
$client = new Phptrigger('127.0.0.1' , 28000);, (*3)
$client = new Phptrigger('127.0.0.1' , 28000);
if ($client->connect()) {, (*4)
if ($client->connect()) {
$client->write_to_worker(['uid' => 123 , 'ax' => 456] , 2);, (*5)
$client->write_to_worker(['uid' => 123 , 'ax' => 456] , 2);
$client->close();, (*6)
$client->close();
}, (*7)
}
````, (*8)
Sources Download
MIT
rest psr7 microframework router