PHP code example of chenshuhao / swoole-flier-mouse-base

1. Go to this page and download the library: Download chenshuhao/swoole-flier-mouse-base 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/ */

    

chenshuhao / swoole-flier-mouse-base example snippets



SwooleFlierMouseBase\Core::getInstance()
	->setConf('./conf.yaml')
	->bindExec('http',function($req,$res){
		return '<h1>hello word</h1>';
	})
	->bindExec('http2',function($req,$res){
		return '<h1>hello word2</h1>';
	})
	->run();