PHP code example of ohdearapp / laravel-ohdear

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

    

ohdearapp / laravel-ohdear example snippets


\OhDear::sites(); // gets all sites

return [

    /*
     * A valid API token for your Oh Dear! account. Instructions on how to get a
     * token can be found on this page: https://ohdear.app/docs/api/authentication
     */
    'api_token' => env('OH_DEAR_API_TOKEN', ''),

    /*
     * The url of your site as shown in Oh Dear.
     * It should start with either 'http' or 'https'.
     */
    'site_url' => env('OH_DEAR_SITE_URL', ''),
];

\OhDear::sites(); // gets all sites