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.
Download der-spiegel/amendo-client
More information about der-spiegel/amendo-client
Files in der-spiegel/amendo-client
Package amendo-client
Short Description PHP client for OneVision Amendo https://www.onevision.com/solutions/image-editing/amendo/
License MIT
Homepage https://github.com/DerSpiegel/amendo_php_client
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
ext-dom Version *
guzzlehttp/guzzle Version >=6.3 <8.0
psr/log Version >=1.1