1. Go to this page and download the library: Download dutchie027/govee 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/ */
dutchie027 / govee example snippets
// Ensure we have the composer libraries
ew dutchie027\govee\Connect("GOVEE-API-KEY");
// Instantiate without defaults, this allows you to change things
// like log location, directory, the tag and possible future settings.
$settings = [
'log_dir' => '/tmp',
'log_name' => 'govee-api',
'log_tag' => 'mylights',
'log_level' => 'error'
];
$govee = new dutchie027\govee\Connect("GOVEE-API-KEY", $settings);