PHP code example of koko / koko-keywords

1. Go to this page and download the library: Download koko/koko-keywords library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

koko / koko-keywords example snippets




use Koko\Keywords;

$koko_keywords = new Keywords();



putenv("KOKO_KEYWORDS_AUTH=username:password")
use Koko\Keywords;

$koko_keywords = new Keywords();

if ($koko_keywords->match("some value", "") {
  // Code if there is a match
}


$koko_keywords->match("sewerslide", "category=eating,parenting:confidence=1,2")