SDK PHP v3.x

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

Constructor #

The Security component lets you handle user permissions in Kuzzle.

Please refer to our permissions guide for more information.

Security #

Arguments Type Description
Kuzzle object An instantiated Kuzzle object

Usage #

Copied to clipboard!
use \Kuzzle\Kuzzle;
use \Kuzzle\Security\Security;
$kuzzle = new Kuzzle('localhost');
// using the static instance
$security = $kuzzle->security();
// or instantiating a new Security object
$security = new Security($kuzzle);