imperian-systems/unifi-controller
Note: This package is backend only, no user interface is included
Install snappy PHP extension
Setup Unifi controller
- Clone the repo
git clone https://github.com/imperian-systems/unifi-controller.git
-
Create a new Laravel install
-
Add repo path to composer.json
"repositories": [
{
"type": "path",
"url": "path/to/repo/unifi-controller"
}
],
- Install unifi-controller
composer require imperian-systems/unifi-controller
-
Configure database in .env
-
Setup database tables for Unifi controller
php artisan migrate
- Install configuration file
php artisan vendor:publish --provider="ImperianSystems\UnifiController\UnifiControllerProvider" --tag="config"
-
If you do not intend to setup user logins for this site, you'll need to edit
config/unifi-controller.php
and comment outauth:api
-
Run web server
php artisan serve --host=[::]
- SSH into Unifi device and point to controller
set-inform http://1.2.3.4:8000/inform
-
View stored data in JSON format
-
View errors in storage/log/laravel.log