PHP code example of voku / agent-session
1. Go to this page and download the library: Download voku/agent-session 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/ */
voku / agent-session example snippets
use voku\AgentSession\SessionStore;
$sessions = new SessionStore();
$active = $sessions->activeForTask($sessionsRoot, $taskId); // exactly one, or null
use voku\AgentSession\PackageResources;
PackageResources::SKILLS; // 'resources/skills'
PackageResources::skillsRoot(); // absolute path inside the installed package