PHP code example of kriosmane / hive-os

1. Go to this page and download the library: Download kriosmane/hive-os 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/ */

    

kriosmane / hive-os example snippets


use KriosMane\HiveOs\HiveOs;

$access_token = '**********************';
$hiveOs = new HiveOs($access_token);


'providers' => [
    ...
    KriosMane\HiveOs\Providers\HiveOsServiceProvider::class,
    ...
]

'aliases' => [
    ...
    'HiveOs' => KriosMane\HiveOs\Facades\HiveOs::class,
    ...
]

HIVEOS_LOGIN=****
HIVEOS_PASSWORD=*****
HIVEOS_ACCESS_TOKEN=***********************************************

use \HiveOs;

return HiveOs::coins();
bash
php artisan vendor:publish --provider="KriosMane\HiveOs\Providers\HiveOs\ServiceProvider"