PHP code example of hyperf-component / alarm

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

    

hyperf-component / alarm example snippets




// config/autoload/middlewares.php

return [
    'http' => [
        HyperfComponent\Alarm\Middleware\AlarmMiddleware::class,
    ],
];

shell script
php bin/hyperf.php vendor:publish hyperf-component/alarm