PHP code example of ohdear / forge-sync

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

    

ohdear / forge-sync example snippets

 bash
php artisan vendor:publish --provider="OhDear\ForgeSync\ForgeSyncServiceProvider"
` php
return [

    /*
     * An Oh Dear! API token.
     *
     * Learn how to get an API token at the Oh Dear! docs
     * https://ohdear.app/docs/api/authentication
     */
    'ohdear_api_token' => '',

    /*
     * A Forge API token.
     *
     * You can create an API token here:
     * https://forge.laravel.com/user/profile#/api
     */
    'forge_api_token' => '',

];
 bash
php artisan ohdear:forge-sync