Download the PHP package dutchie027/govee-api-v2 without Composer

On this page you can find all versions of the php package dutchie027/govee-api-v2. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package govee-api-v2

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version RequireCodeFactor

Govee PHP API v2

This is a rewrite of the Govee API I wrote a while back. Govee changed the API to be more robust, so I am rewriting the code to accommodate.

WORK IN PROGRESS

NOTE: This is still a work in progress. As I commit more to it, it will become more stable, but for now it's not fully baked.

Requirements

Installation

You can install the package using the Composer package manager. You can install it by running this command in your project root:

Basic Usage

Set up the Environment Variables

Rename .env.sample to .env and set the variables accordingly.

Instantiate the client

To use any of the Govee API functions, you first need a connection reference. The connection refrence can then be fed to either the Lights library or the Plugs library, or even both if you have both Govee Lights and Plugs.

Using the full name:

Using a namespace:

Get Device Count

Get All Devices

NOTE: This function takes a boolean parameter. If the parameter is set to true it will return an array based on the Govee API. If it's set to false, it returns raw JSON.

Get An Array of All Callable MAC Addresses

MAC Return Array

Get An Array of All Device Names

Device Name Return Array

Contributing

If you're having problems, spot a bug, or have a feature suggestion, file an issue. If you want, feel free to fork the package and make a pull request. This is a work in progresss as I get more info and the Govee API grows.


All versions of govee-api-v2 with dependencies

PHP Build Version
Package Version
Requires monolog/monolog Version ^3.8
guzzlehttp/guzzle Version ^7.9
vlucas/phpdotenv Version ^5.6
oittaa/uuid Version ^1.10
php Version ^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dutchie027/govee-api-v2 contains the following files

Loading the files please wait ....