PHP code example of my-monitor / ping-sdk

1. Go to this page and download the library: Download my-monitor/ping-sdk 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/ */

    

my-monitor / ping-sdk example snippets


// $images->optimize();
\MyMonitor\PingSdk\PingSdkFacade::ping('<Ping Key>');

    //
    MyMonitor\PingSdk\PingSdkServiceProvider::class,



return [
    'api_endpoint' => env('PINGSDK_API_ENDPOINT',null),
    'api_token' => env('PINGSDK_API_TOKEN',null),
];

// bootstrap/app.php:
$app->withFacades();
$app->withEloquent();

// bootstrap/app.php:
$app->register(MyMonitor\PingSdk\PingSdkServiceProvider::class);

// bootstrap/app.php
$app->configure('mymonitor-ping');

php artisan vendor:publish --provider="MyMonitor\PingSdk\PingSdkServiceProvider::class"