I'm trying to install PAMI library I installed it via pear:
# pear channel-discover pear.marcelog.name
# pear install marcelog/PAMI
and trying to use example.php
$pamiClientOptions = array(
'host' => '127.0.0.1',
'scheme' => 'tcp://',
'port' => 9999,
'username' => 'admin',
'secret' => 'mysecret',
'connect_timeout' => 10000,
'read_timeout' => 10000
);
use PAMI\Client\Impl\ClientImpl as PamiClient;
$pamiClient = new PamiClient($pamiClientOptions);
// Open the connection
$pamiClient->open();
// Close the connection
$pamiClient->close();
when I try to use this script I receive error:
Class 'PAMI\Client\Impl\ClientImpl' not found
It's first time, I see that classes are included like this (use). I'm using debian Linux also. Please, help.
UPDATE
Also it's installed in /usr/share/php/PAMI/