Download the PHP package translations-com/globallink-connect-api-php without Composer

On this page you can find all versions of the php package translations-com/globallink-connect-api-php. 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 globallink-connect-api-php

GlobalLink Connect PHP SDK

A PHP SDK for the GlobalLink Enterprise REST API, enabling seamless integration with TransPerfect's GlobalLink translation management platform.

Features

Available Endpoints

Category Endpoints
Health & Info healthcheck(), getInstanceInfo()
Projects getProjects(), getProject(), getProjectFileFormats(), getProjectWorkflows(), getProjectCustomAttributes(), getProjectLanguageDirections(), getProjectOrgUsers(), getProjectMslaLevels()
Submissions createSubmission(), getSubmissions(), getSubmission(), getSubmissionWordcount(), patchSubmission(), saveSubmission(), cancelSubmission()
File Upload uploadSubmissionSourceFile(), uploadSubmissionReferenceFile()
Tech Tracking putSubmissionTechTracking()
Targets getTargets()
Downloads downloadTargetDeliverable(), downloadSubmissionDeliverables(), downloadSubmissionOnlyDeliverables(), downloadSubmissionDeliverablesByLanguages(), downloadSubmissionDeliverablesByTargetIds()
Delivery confirmTargetDelivery()

Requirements

No additional PHP extensions are required. The SDK uses PHP's built-in stream functions for HTTP requests.

Installation

Clone the repository and install dependencies:

To use as a dependency in another project, add to your composer.json:

Then run composer update transperfect/globallink-connect-php.

Quick Start

Configuration

Set your GlobalLink credentials as environment variables before running any script:

To use a .env file, load it before creating the client. For example, with vlucas/phpdotenv:

Or copy .env.example to .env and load variables manually.

Basic Usage

API Reference

Authentication

The client automatically handles OAuth2 authentication and token refresh. Tokens are refreshed automatically when they expire.

Health Check

Instance Information

Projects

Submissions

Targets

Error Handling

The SDK provides a typed exception hierarchy:

Rate Limit Information

Advanced Usage

Custom HTTP Client

You can inject a custom HTTP client for testing or to use a different HTTP library:

Custom User-Agent

Retry Configuration

Enable automatic retries for transient failures (429 rate limit, 5xx server errors):

Examples

The SDK includes comprehensive example scripts demonstrating all functionality:

Example Description
examples/01-projects.php Health check, instance info, projects, file formats, workflows, language directions, custom attributes, organization users, MSLA levels
examples/02-submissions.php Create submissions, upload source/reference files, tech tracking, save, wordcount, cancel
examples/03-targets.php Poll targets, pagination, download deliverables, bulk downloads, confirm delivery

Run examples from the project root after setting credentials:

Pagination

The GlobalLink API uses pagination for list endpoints. Important notes:

Running Tests

Integration Tests Setup

  1. Copy .env.test.example to .env.test:

  2. Edit .env.test and fill in your GlobalLink sandbox credentials:

  3. Run integration tests:

Contributing

This repository is maintained exclusively by TransPerfect. External contributions such as pull requests are not accepted. If you encounter a bug or have a feature request, please contact your TransPerfect representative or reach out via GlobalLink Support.

Security

If you discover a security vulnerability in this SDK, please report it responsibly. Do not open a public GitHub issue for security vulnerabilities.

Instead, please contact TransPerfect directly at [email protected] with:

We will acknowledge receipt within 3 business days and work to address verified vulnerabilities promptly.

License

This software is proprietary and confidential. Unauthorized copying, distribution, or use is strictly prohibited.

Copyright (c) TransPerfect. All rights reserved.

Support

For support, please contact your TransPerfect representative or visit GlobalLink Support.


All versions of globallink-connect-api-php with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.9
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 translations-com/globallink-connect-api-php contains the following files

Loading the files please wait ...