PHPackages                             translations-com/globallink-connect-api-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. translations-com/globallink-connect-api-php

ActiveLibrary[API Development](/categories/api)

translations-com/globallink-connect-api-php
===========================================

PHP SDK for the GlobalLink Enterprise REST API

4.18.6(2y ago)2436.3k↓30.6%1Apache License 2.0PHPPHP &gt;=5.5.9CI failing

Since Sep 14Pushed 1w ago4 watchersCompare

[ Source](https://github.com/translations-com/globallink-connect-api-php)[ Packagist](https://packagist.org/packages/translations-com/globallink-connect-api-php)[ Docs](http://www.translations.com)[ RSS](/packages/translations-com-globallink-connect-api-php/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (7)DependenciesVersions (11)Used By (1)

GlobalLink Connect PHP SDK
==========================

[](#globallink-connect-php-sdk)

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

Features
--------

[](#features)

- **Complete API Coverage**: All REST API endpoints for projects, submissions, targets, and downloads
- **OAuth2 Authentication**: Automatic token management and refresh
- **Type Safety**: Full PHP 8.3+ type hints and strict typing
- **Error Handling**: Typed exception hierarchy for precise error handling
- **Rate Limiting**: Built-in rate limit tracking and handling
- **Pagination**: Support for paginated API responses (pageSize: 20-200)

Available Endpoints
-------------------

[](#available-endpoints)

CategoryEndpoints**Health &amp; 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
------------

[](#requirements)

- **PHP 8.3** or higher
- **Composer** (for dependency management)

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

Installation
------------

[](#installation)

Clone the repository and install dependencies:

```
git clone https://github.com/transperfect/globallink-connect-php.git
cd globallink-connect-php
composer install
```

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

```
{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/transperfect/globallink-connect-php"
        }
    ],
    "require": {
        "transperfect/globallink-connect-php": "*"
    }
}
```

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

Quick Start
-----------

[](#quick-start)

### Configuration

[](#configuration)

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

```
export GLE_API_URL="https://your-instance.globallink.com"
export GLE_USERNAME="your-username"
export GLE_PASSWORD="your-password"
export GLE_OAUTH_CLIENT="your-oauth-client-id"
export GLE_OAUTH_SECRET="your-oauth-client-secret"
```

To use a `.env` file, load it before creating the client. For example, with [vlucas/phpdotenv](https://github.com/vlucas/phpdotenv):

```
composer require vlucas/phpdotenv
```

```
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__);
$dotenv->load();
```

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

### Basic Usage

[](#basic-usage)

```
