Download the PHP package ashampoo/ats-client without Composer

On this page you can find all versions of the php package ashampoo/ats-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 ats-client

Ashampoo ATS Client

Laravel client for the Ashampoo Translation Studio (ATS) API.

Wraps the ATS HTTP endpoints in a typed, testable client with declarative endpoint definitions, query-parameter validation, and wrapped exceptions.

Installation

The package is auto-discovered once it's in the packages/ tree and declared in the root composer.json repositories/require sections:

Publish the config (optional — the package ships with sensible defaults):

Configuration

Set in .env:

ATS_BASEURL, ATS_TOKEN, and ATS_PROJECT_ID are required when resolving the client from the container; the service provider throws InvalidArgumentException early with a clear message if one is missing. ATS_TIMEOUT is optional and defaults to 30 seconds.

Usage

The public API consists of typed methods, one per endpoint. Each method returns Laravel's Illuminate\Http\Client\Response.

Via dependency injection

Via facade

GET — fetching translations

POST — JSON import

Machine translation / Translation memory

Endpoints

Defined in AtsEndpoint:

Case Method Path
Translations GET /api/project/{projectId}/translations
TranslationsAll GET /api/project/{projectId}/translations/all
LangInfo GET /api/project/{projectId}/language/info
TranslationImport POST /api/project/{projectId}/import
MachineTranslation POST /api/machinetranslations/{projectId}/generate
MachineTranslationAll POST /api/machinetranslations/{projectId}/generate/all
MemoryTranslation POST /api/translationmemory/{projectId}/generate
MemoryTranslationAll POST /api/translationmemory/{projectId}/generate/all

Each case also declares its allowed query parameters via AtsEndpoint::queryParams(). Required parameters are enforced by the client before any HTTP call is made.

Exceptions

All exceptions extend the abstract AtsException and live in Ashampoo\AtsClient\Exceptions\:

Exception When
MissingQueryParamException Required query parameter not provided before the HTTP call.
MissingBodyException Endpoint requires a JSON body but none was supplied.
UnresolvedPathPlaceholderException A {placeholder} in the endpoint path was never substituted.
AtsRequestException Server returned 4xx/5xx. getResponse(): Response exposes it.

Typical handling:

Development

Tests use Http::fake() throughout — no network calls.

License

Proprietary. See LICENSE.


All versions of ats-client with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
ext-json Version *
ext-zip Version *
illuminate/http Version ^12.0 || ^13.0
illuminate/support Version ^12.0 || ^13.0
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 ashampoo/ats-client contains the following files

Loading the files please wait ...