brunogasparetto/adobe-connect-client

This package is abandoned and no longer maintained. No replacement package was suggested.

PHP Cliente for Adobe Connect API

3.1.1 2020-09-19 14:39 UTC

This package is auto-updated.

Last update: 2020-10-19 15:01:05 UTC


README

Build Status

Currently I no longer have access to Adobe Connect, so I am unable to continue to maintain this project.

Client for Adobe Connect API v9.5.4

PHP library to comunicate with the Adobe Connect Web Service.

There are many actions implemented. Some of them are a sequence of actions, like the RecordingPasscode.

Installation

The package is available on Packagist. You can install it using Composer

$ composer require brunogasparetto/adobe-connect-client

Usage

use AdobeConnectClient\Connection\Curl\Connection;
use AdobeConnectClient\Client;

$connection = new Connection('https://hostname.adobeconnect.com');
$client =  new Client($connection);
$commonInfo = $client->commonInfo();

You can use filters and sorters in some actions.

use AdobeConnectClient\Connection\Curl\Connection;
use AdobeConnectClient\Client;
use AdobeConnectClient\Entities\SCO;
use AdobeConnectClient\Filter;
use AdobeConnectClient\Sorter;

$connection = new Connection('https://hostname.adobeconnect.com');
$client =  new Client($connection);

$client->login('username', 'password');

$folderId = 123;

$filter = Filter::instance()
  ->dateAfter('dateBegin', new DateTimeImmutable())
  ->like('name', 'ClassRoom');

$sorter = Sorter::instance()
  ->asc('dateBegin');

$scos = $client->scoContents($folderId, $filter, $sorter);

The entities, filters and sorter use Fluent Interface.

The AdobeConnectClient\Connection\Curl\Connection class accept an array of options to configure the CURL.

use AdobeConnectClient\Connection\Curl\Connection;
use AdobeConnectClient\Client;

// For tests with no SSL
$connection = new Connection(
  'https://hostname.adobeconnect.com',
  [
    CURLOPT_SSL_VERIFYHOST => 0,
    CURLOPT_SSL_VERIFYPEER => 0,
  ]
);
$client =  new Client($connection);
$commonInfo = $client->commonInfo();

IMPORTANT

All Client actions are throwable.

use AdobeConnectClient\Connection\Curl\Connection;
use AdobeConnectClient\Client;
use AdobeConnectClient\Exceptions\NoAccessException;

$connection = new Connection('https://hostname.adobeconnect.com');
$client = new Client($connection);

// Throws NoAccessException if not logged in
$client->scoInfo(123);