PHPackages                             amdbartek/wizard - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. amdbartek/wizard

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

amdbartek/wizard
================

WiZard: A PHP library that can be used to control WiZ Wi-Fi light bulbs over LAN without using the proprietary Android app or official cloud API.

02PHP

Since Apr 26Pushed 1y ago1 watchersCompare

[ Source](https://github.com/AMDBartek/WiZard)[ Packagist](https://packagist.org/packages/amdbartek/wizard)[ RSS](/packages/amdbartek-wizard/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)DependenciesVersions (1)Used By (0)

WiZard
======

[](#wizard)

[![](assets/images/wizard_logo.png)](assets/images/wizard_logo.png)

A PHP library and command-line tool that can be used to control WiZ Wi-Fi light bulbs over LAN without using the proprietary mobile app or official cloud API. It has been tested on Linux systems only, however it should work on other operating systems as well, for example \*BSD, Windows, macOS, etc. One use of it is for controlling WiZ bulbs from a PC, SBC, or any other device that can run PHP scripts. It can also be used as a library in other PHP projects to programmatically control WiZ bulbs or the CLI can be used as a command-line tool for controlling WiZ bulbs from the terminal or shell script.

Installation and Usage (CLI, end user)
--------------------------------------

[](#installation-and-usage-cli-end-user)

1. Download [wizard-cli](https://github.com/AMDBartek/WiZard/releases/latest/download/wizard-cli) and place it in your PATH.
2. Make sure the file is executable (`chmod +x wizard-cli`).
3. Ensure that your device has a PHP installation with the `sockets` extension enabled (e.g., by running `php -m | grep sockets`).
4. Run `wizard-cli help` to see available commands. On Windows, you may need to preface the command with `php` as such: `php wizard-cli` if it does not support shebang lines.
5. Enjoy!

Installation and Usage (PHP, developer)
---------------------------------------

[](#installation-and-usage-php-developer)

1. Install via Composer: `composer require amdbartek/wizard` (the stability is `dev`, so you may need to adjust your `composer.json` accordingly).
2. Include the autoload file in your project (`require_once 'vendor/autoload.php';`).
3. Use the provided classes and methods as needed, ensuring you have a PHP installation with the `sockets` extension enabled.

Please take a look at the comprehensive example below for more details on how to use this library effectively. If you need to get guidance for the accepted parameter ranges, please take a look at the official CLI tool as documentation is not yet written:

```
