The Imaging Source produces a large number of downloadable files (drivers, end-user software, documentation, images etc.). These resources are published at dl.theimagingsource.com and are available via a JSON-based API. In addition to encapsulating the functionality of the JSON-based API, this component library provides several helper objects to make access to The Imaging Source downloads as simple and quick as possible.
Use Composer to install the SDK:
composer require theimagingsource/tisd-sdk ^5.0
The SDK ships with comprehensive samples illustrating all functionality. Please take a look in the /bin
directory.
The SDK ships with complete unit tests. Simply run composer test
in the root directory.
root
categories
sections
packages
package
<?php
use Tisd\Sdk\Sdk;
$sdk = new Sdk();
$packages = $sdk->getPackages();
foreach ($packages['children'] as $categoryId => $categories) {
foreach ($categories['children'] as $sectionId => $sections) {
foreach ($sections['children'] as $packageId => $package) {
// $latestPackageVersion = array_shift($package['versions']);
}
}
}
foreach ($packages['children'] as $categoryId => $categories) {
foreach ($categories['children'] as $sectionId => $sections) {
foreach ($sections['children'] as $packageId => $package) {
// $latestPackageVersion = array_shift($package['versions']);
}
if (0 === count($packages['children'][$categoryId]['children'][$sectionId]['children'])) {
unset($packages['children'][$categoryId]['children'][$sectionId]);
}
}
if (0 === count($packages['children'][$categoryId]['children'])) {
unset($packages['children'][$categoryId]);
}
}
?>