2017 © Pedro Peláez
 

library tisd-sdk

PHP wrapper for The Imaging Source Download System Web API. Authored and supported by The Imaging Source Europe GmbH.

image

theimagingsource/tisd-sdk

PHP wrapper for The Imaging Source Download System Web API. Authored and supported by The Imaging Source Europe GmbH.

  • Friday, May 11, 2018
  • by jonathanmaron
  • Repository
  • 1 Watchers
  • 0 Stars
  • 28 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 22 % Grown

The README.md

Logo, (*1)

PHP Wrapper for The Imaging Source Download System Web API

Coverage Status Scrutinizer Code Quality Total Downloads Latest Stable Version, (*2)

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., (*3)

Installation

Use Composer to install the SDK:, (*4)

composer require theimagingsource/tisd-sdk ^5.0, (*5)

Sample Endpoints

Return all supported locales

  • https://dl.theimagingsource.com/api/2.5/packages/en_US.json

Return all supported contexts

  • https://dl.theimagingsource.com/api/2.5/contexts/en_US.json

Return meta information and statistics

  • https://dl.theimagingsource.com/api/2.5/meta/en_US.json

Return all data (consolidated)

  • https://dl.theimagingsource.com/api/2.5/consolidated/en_US.json

Return all packages in "Downloads"

  • https://dl.theimagingsource.com/api/2.5/packages/downloads/en_US.json

Return all packages in "Downloads" -> "Drivers"

  • https://dl.theimagingsource.com/api/2.5/packages/downloads/drivers/en_US.json

Return package matching product code ID

  • https://dl.theimagingsource.com/api/2.5/get-package-by-product-code-id/icwdmuvccamtis/en_US.json

Return package matching package ID

  • https://dl.theimagingsource.com/api/2.5/get-package-by-package-id/icwdmuvccamtis/en_US.json

Return package matching UUID

  • https://dl.theimagingsource.com/api/2.5/get-package-by-uuid/059f8cbe-9a03-5ad8-809e-90b33380a673.json

Programming Samples

The SDK ships with comprehensive samples illustrating all functionality. Please take a look in the /bin directory., (*6)

Unit Tests

The SDK ships with complete unit tests. Simply run composer test in the root directory., (*7)

JSON Structure

root
  categories
    sections
      packages
        package

Loop through the JSON structure in PHP

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]);
    }
}

?>

The Versions

11/05 2018

dev-master

9999999-dev

PHP wrapper for The Imaging Source Download System Web API. Authored and supported by The Imaging Source Europe GmbH.

  Sources   Download

BSD-3-Clause

The Requires

  • php ^7.1

 

The Development Requires

11/05 2018

4.1.0

4.1.0.0

PHP wrapper for The Imaging Source Download System Web API. Authored and supported by The Imaging Source Europe GmbH.

  Sources   Download

BSD-3-Clause

The Requires

  • php ^7.1

 

The Development Requires

09/05 2018

4.0.6

4.0.6.0

PHP wrapper for The Imaging Source Download System Web API. Authored and supported by The Imaging Source Europe GmbH.

  Sources   Download

BSD-3-Clause

The Requires

  • php ^7.1

 

The Development Requires

09/05 2018

4.0.5

4.0.5.0

PHP wrapper for The Imaging Source Download System Web API. Authored and supported by The Imaging Source Europe GmbH.

  Sources   Download

BSD-3-Clause

The Requires

  • php ^7.1

 

The Development Requires

09/05 2018

4.0.4

4.0.4.0

PHP wrapper for The Imaging Source Download System Web API. Authored and supported by The Imaging Source Europe GmbH.

  Sources   Download

BSD-3-Clause

The Requires

  • php ^7.1

 

The Development Requires

09/05 2018

4.0.3

4.0.3.0

PHP wrapper for The Imaging Source Download System Web API. Authored and supported by The Imaging Source Europe GmbH.

  Sources   Download

BSD-3-Clause

The Requires

  • php ^7.1

 

The Development Requires

09/05 2018

4.0.2

4.0.2.0

PHP wrapper for The Imaging Source Download System Web API. Authored and supported by The Imaging Source Europe GmbH.

  Sources   Download

BSD-3-Clause

The Requires

  • php ^7.1

 

The Development Requires

09/05 2018

dev-api-2.5

dev-api-2.5 https://github.com/jonathanmaron/theimagingsource-tisd

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.

  Sources   Download

Apache-2.0

The Requires

  • php ^7.1

 

The Development Requires

07/05 2018

3.0.3

3.0.3.0 https://github.com/jonathanmaron/theimagingsource-tisd

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.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

08/11 2017

2.5.13

2.5.13.0 https://github.com/jonathanmaron/theimagingsource-tisd

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.

  Sources   Download

Apache-2.0

The Requires

  • php >=5.5

 

The Development Requires