PHPackages                             cyberspectrum/php-transifex - 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. cyberspectrum/php-transifex

ActiveProject[API Development](/categories/api)

cyberspectrum/php-transifex
===========================

transifex API client written 100% in PHP

2.0.3(2y ago)0134MITPHPPHP ^8.1

Since Mar 9Pushed 2y ago1 watchersCompare

[ Source](https://github.com/cyberspectrum/php-transifex)[ Packagist](https://packagist.org/packages/cyberspectrum/php-transifex)[ RSS](/packages/cyberspectrum-php-transifex/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (17)Versions (8)Used By (0)

[![Build Status](https://github.com/cyberspectrum/php-transifex/actions/workflows/diagnostics.yml/badge.svg)](https://github.com/cyberspectrum/php-transifex/actions)[![Latest Version tagged](https://camo.githubusercontent.com/b8de7afafa2f08e363f404f6a2b2f533c7f21b59f3d2bae856b57fd2c488dc7a/687474703a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f6379626572737065637472756d2f7068702d7472616e73696665782e737667)](https://github.com/cyberspectrum/php-transifex/tags)[![Latest Version on Packagist](https://camo.githubusercontent.com/485a350f4d858dc3ca80926d258ecf7dae7ff9b10c5ed0184bf44763a9b13cfe/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6379626572737065637472756d2f7068702d7472616e73696665782e737667)](https://packagist.org/packages/cyberspectrum/php-transifex)[![Installations via composer per month](https://camo.githubusercontent.com/326f0a6e062203feb7660531a9aaa7421257467d6e0785c49c975fb6d17ef022/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6379626572737065637472756d2f7068702d7472616e73696665782e737667)](https://packagist.org/packages/cyberspectrum/php-transifex)

Transifex client written in PHP.
================================

[](#transifex-client-written-in-php)

This uses `php-http` base interfaces.

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

[](#installation)

```
$ php composer.phar require cyberspectrum/php-transifex php-http/guzzle7-adapter
```

Why `php-http/guzzle7-adapter`? We are decoupled form any HTTP messaging client with help by [HTTPlug](http://httplug.io/).

You may also install any other adapter instead of `php-http/guzzle7-adapter`, just make sure one is installed.

Usage
-----

[](#usage)

We have two layers of API.

1. Low level API in the namespace `CyberSpectrum\PhpTransifex\ApiClient`
2. High level entity based API in the namespace `CyberSpectrum\PhpTransifex\Model`

### 1. Low level API.

[](#1-low-level-api)

Quick start - create an API client:

```
$factory = new CyberSpectrum\PhpTransifex\ApiClient\ClientFactory(
    $logger,
    [new CyberSpectrum\PhpTransifex\ApiClient\Generated\Authentication\BearerAuthAuthentication($apiKey)]
);
$client = $factory->create($factory->createHttpClient());

// Fetch a project:
$project = $client->getProjectByProjectId('project-id');
```

### 2. High level API.

[](#2-high-level-api)

#### Create an API client:

[](#create-an-api-client)

```
$factory = new CyberSpectrum\PhpTransifex\ApiClient\ClientFactory(
    $logger,
    [new CyberSpectrum\PhpTransifex\ApiClient\Generated\Authentication\BearerAuthAuthentication($apiKey)]
);
$client = $factory->create($factory->createHttpClient());
$transifex = new CyberSpectrum\PhpTransifex\PhpTransifex($client);
```

#### Fetch an organization:

[](#fetch-an-organization)

```
$organization = $transifex->organizations()->getBySlug('organization');
```

#### Create a project:

[](#create-a-project)

```
$project = $organization->projects()->add(
    'project-slug',
    'My Project description',
    'en', // source language code.
    'https://example.org' // the repository URL for open source projects or false for private.
);
$project->save();
```

#### Fetch a project:

[](#fetch-a-project)

```
$project = $transifex->organizations()->getBySlug('organization')->projects()->getBySlug('some-project');
```

#### Add a language

[](#add-a-language)

```
$project->languages()->add('de')->coordinators()->add('transifex-username');
$project->save();

// Show all language codes for the project.
var_export($project->languages()->codes());
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~470 days

Recently: every ~445 days

Total

6

Last Release

1000d ago

Major Versions

1.0.1 → 2.0.02023-05-03

PHP version history (3 changes)1.0.0PHP &gt;=5.6

1.0.1PHP ^5.6 | ^7.0

2.0.0PHP ^8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/44649522?v=4)[xtra](/maintainers/xtra)[@xtra](https://github.com/xtra)

---

Top Contributors

[![discordier](https://avatars.githubusercontent.com/u/940331?v=4)](https://github.com/discordier "discordier (56 commits)")

### Embed Badge

![Health badge](/badges/cyberspectrum-php-transifex/health.svg)

```
[![Health](https://phpackages.com/badges/cyberspectrum-php-transifex/health.svg)](https://phpackages.com/packages/cyberspectrum-php-transifex)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[openai-php/client

OpenAI PHP is a supercharged PHP API client that allows you to interact with the Open AI API

5.8k22.6M232](/packages/openai-php-client)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[getbrevo/brevo-php

Official Brevo provided RESTFul API V3 php library

963.1M35](/packages/getbrevo-brevo-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
