Download the PHP package der-spiegel/amendo-client without Composer

On this page you can find all versions of the php package der-spiegel/amendo-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package amendo-client

A PHP client for OneVision Amendo

OneVision Amendo is automated image enhancement software. This PHP client library uses its REST API.

This is not an official library supplied by the OneVision vendor. It has been developed for the WoodWing Assets project at the German SPIEGEL Gruppe, 2020.

Installation

Use Composer to add this library your project’s composer.json file:

Developing this library

If you want to help developing this library, Here’s how to get started (Docker required):

Install dependencies using Composer

Use the library

The UsageExample.php example script can be used without modification by setting the environment variable AMENDO_SERVER to the Amendo server base URL, AMENDO_ASSEMBLYLINE the name of the Amendo assembly line and AMENDO_FILEPATH to a file path, that should be processed by the assembly line.

The script will create a new job for the specified file using the specified assembly line. Some custom job and file properties are submitted with the job ticket to the Amendo server, that can be used to configure modules used in the assembly line.

For more advanced usage create a copy of the UsageExample.php example file

$ cp UsageExample.php MyExample.php

and modify the copied file accordingly.

Example source code explained

Create an AmendoConfig object refering to the Amendo server:

Create an AmendoClient object using the AmendoConfig object:

Create a SimpleJobTicket object:

Optional: Set job name:

If no job name is set, a generated job name is used.

Set assembly line to use:

Optional: Set a job priority:

If no priority is set, no priority is submitted to the Amendo server.

Optional: Add job properties to the job:

The first argument of each method call specifies the list name to add the property to. The second argument secifies the property name and the third argument its value.

The first line adds a property of type string, the second line a property of type boolean, the third line a property of type integer and the fourth lie a property of type floating point to the job properties.

Add one or more files to the job's run list:

Use

for regular local files or

for file URI's or

for download URI's.

Optional: Add file properties to the added file:

See job properties above for details.

Submit the SimpleJobTicket to the Amendo server.

On success a positive $jobId is returned by the Amendo server.
On error, either an exception is thrown or the Amendo server returns 0.

Optional: Querying the job overview:

Returns an array whose contents depends on the current status of the job.

Then run your copy

Authors

License

This library is licensed under the MIT License - see the LICENSE file for details.


All versions of amendo-client with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2 <8.4
ext-dom Version *
guzzlehttp/guzzle Version >=6.3 <8.0
psr/log Version >=1.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package der-spiegel/amendo-client contains the following files

Loading the files please wait ....