PHP code example of bestit / harvest-api

1. Go to this page and download the library: Download bestit/harvest-api 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/ */

    

bestit / harvest-api example snippets


// Get all users.
$users = Harvest::users()->all();

// For more examples check the ./examples directory.

// Load dependencies
pany.harvestapp.com';
$username = '[email protected]';
$password = 'password';

$client = new \BestIt\Harvest\Client($url, $username, $password);

// Get all users.
$users = $client->users()->all();

// For more examples check the ./examples directory.

php artisan vendor:publish --provider="BestIt\Harvest\HarvestServiceProvider"