PHP code example of mezzio / mezzio-swoole

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

    

mezzio / mezzio-swoole example snippets




use Mezzio\Swoole\ConfigProvider;

return array_merge((new ConfigProvider())(), []);



use Mezzio\Swoole\ConfigProvider;

return array_merge((new ConfigProvider())(), [
    'mezzio-swoole' => [
        'swoole-http-server' => [
            'host' => 'insert hostname to use here',
            'port' => 80, // use an integer value here
        ],
    ],
]);