UniFi API Client Versions Save

A PHP API client class to interact with Ubiquiti's UniFi Controller API

v1.1.90

2 months ago
  • remove existing x-csrf-token headers before adding a new one, apparently UniFi OS does not like multiple x-csrf-tokens in the same request

v1.1.89

3 months ago
  • added create_tag(), set_tagged_devices(), get_tag(), and delete_tag() methods to manage tags, contributed by @brenard, #205

v1.1.88

3 months ago
  • added list_fingerprint_devices() method to list fingerprints for clients devices, contributed by @dream-rhythm, #213
  • minor code clean up

v1.1.87

3 months ago
  • further code clean up and refactoring to pass more phpstan tests

v1.1.86

3 months ago

API client class v1.1.86

  • fixes issue with curl_init() returning CurlHandle class objects instead of curl handlers with PHP 8 and higher

v1.1.85

3 months ago

API client class v1.1.85

  • removed unnecessary type casting in several methods
  • fixed return type hinting in several methods where return type needed to be array|bool instead of just array
  • relaxed parameter type hinting in the constructor to allow for null values for several parameters that have sensible defaults, reported by @pbksol
  • using phpstan, the class passes level 5 checks

v1.1.84

3 months ago
  • PHP 7.4 is now the minimum required version
  • updated the code for 7.4. specific features such as parameter type hinting, return types, etc.
  • added the ability to the constructor to change the key that is used to store the unificookie in the session, ($_SESSION['unificookie'] is used by default), this is useful when running multiple applications on the same server

v1.1.83

5 months ago
  • added a accept: application/json header to the login requests
  • re-added support for cookies when working with a UniFi OS-based controller

v1.1.82

5 months ago
  • allow filtering by multiple MAC addresses in list_devices(), contributed by @sgrodzicki, #189

v1.1.81

5 months ago
  • hotfix to address cookie issues in UniFi OS 3.2.7, reported by @tflatebo
  • fixed minor typos
  • minor code reformatting of the examples
  • starting with this release, cookies are no longer supported when connecting to a UniFi OS-based controller
  • added set_vlan_to_port.php example, contributed by @SamuelSchnelly, #203
  • allow additional parameters in create_wlan()'s payload, contributed by @sgrodzicki, #191