Qookies.php is a lightweight utility library to interact with the Qookies plugin from PHP.
To install the utility, upload /Qodio/ to your web-server. With a manual install you'll have to manage autoloading of classes yourself.
The Qookies plugin uses four categories for cookies:
strictfor strictly necessary cookiespreferencesfor user preference and UX cookiesstatisticsfor statistics and analytics cookiesmarketingfor targeting and advertising cookies
To check the consent status of a browser window, simply call the appropriate function on the Qookies class.
The following example shows how to perform conditional logic or includes if a user has given consent to marketing cookies:
<?php
use Qodio\Qookies;
if (Qookies::marketing()) {
echo 'User has consented to marketing cookies';
}