PHP code example of chatbox-inc / peridot-lumen-plugin
1. Go to this page and download the library: Download chatbox-inc/peridot-lumen-plugin 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/ */
chatbox-inc / peridot-lumen-plugin example snippets
`
use Evenement\EventEmitterInterface;
return function(EventEmitterInterface $emitter) {
\Peridot\Plugin\Lumen\register(
`
it('GET /string should get string ', function() {
$this->lumen->get("/string");
/** @var \Illuminate\Http\Response $response */
$response = $this->lumen->response;
assert($response->getStatusCode() === 200);
assert($response->getOriginalContent() === "hogehoge");
});