PHP code example of guandeng / hyperf-telescope

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

    

guandeng / hyperf-telescope example snippets




// config/autoload/listeners.php

return [
    Guandeng\Telescope\Listener\RequestHandledListener::class,
];




// config/autoload/middlewares.php

return [
    'grpc' => [
        Guandeng\Telescope\Middleware\TelescopeMiddleware::class,
    ],
];

shell
php bin/hyperf.php vendor:publish guandeng/hyperf-telescope