PHP code example of hollisho / lumen-request
1. Go to this page and download the library: Download hollisho/lumen-request 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/ */
hollisho / lumen-request example snippets
//定义Request对象
class RequestBo extend LumenRequest
{
public $html_content;
public $language_edit = 0;
public function rules()
{
return [
'html_content' => ['exController extends Controller
{
/**
* @param FetchHtmlRequest $request
* @param DomRenderService $renderService
* @return \Illuminate\Http\JsonResponse
*/
public function parserHtml(RequestBo $request)
{
......
}
}