PHPackages                             maxoplata/simple-locize - 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. [Localization &amp; i18n](/categories/localization)
4. /
5. maxoplata/simple-locize

ActiveLibrary[Localization &amp; i18n](/categories/localization)

maxoplata/simple-locize
=======================

A lightweight library for handling translations via the Locize API

v1.0.0(3y ago)05MITPHP

Since Apr 21Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Maxoplata/simple-locize-php)[ Packagist](https://packagist.org/packages/maxoplata/simple-locize)[ RSS](/packages/maxoplata-simple-locize/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

Simple Locize
=============

[](#simple-locize)

Simple Locize is a PHP library for handling translations via the Locize API. Locize is a translation management system that allows you to easily manage your application's translations.

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

[](#installation)

You can install Simple Locize via Composer. Run the following command in your terminal:

```
composer require maxoplata/simple-locize
```

Usage
-----

[](#usage)

To use Simple Locize, you first need to create an instance of the `SimpleLocize` class:

```
use Maxoplata\SimpleLocize;

$projectId = 'your-project-id';
$environment = 'your-environment';
$privateKey = 'your-private-key'; // optional

$locize = new SimpleLocize($projectId, $environment, $privateKey);
```

### Fetching translations

[](#fetching-translations)

To fetch translations for a specific namespace and language, you can use the `getAllTranslationsFromNamespace` method:

```
$namespace = 'your-namespace';
$language = 'en';

$translations = $locize->getAllTranslationsFromNamespace($namespace, $language);
```

This will return an object containing all translations for the specified namespace and language.

### Translating a key

[](#translating-a-key)

To translate a specific key for a namespace and language, you can use the `translate` method:

```
$namespace = 'your-namespace';
$language = 'en';
$key = 'your.key';

$translation = $locize->translate($namespace, $language, $key);
```

This will return the translation for the specified key, or the key itself if no translation is found.

License
-------

[](#license)

Simple Locize is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1121d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c57a872e2e7254921dcd774d930fd347276e908ab0ad8492e28e3a654395c5f9?d=identicon)[Maxoplata](/maintainers/Maxoplata)

---

Top Contributors

[![Maxoplata](https://avatars.githubusercontent.com/u/850981?v=4)](https://github.com/Maxoplata "Maxoplata (2 commits)")

---

Tags

internationalizationi18ntranslationlocize

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/maxoplata-simple-locize/health.svg)

```
[![Health](https://phpackages.com/badges/maxoplata-simple-locize/health.svg)](https://phpackages.com/packages/maxoplata-simple-locize)
```

###  Alternatives

[tractorcow/silverstripe-fluent

Simple localisation for Silverstripe

92421.6k26](/packages/tractorcow-silverstripe-fluent)[inpsyde/multilingual-press

Simply THE multisite-based free open source plugin for your multilingual websites.

2414.0k1](/packages/inpsyde-multilingual-press)[skillshare/formatphp

Internationalize PHP apps. This library provides an API to format dates, numbers, and strings, including pluralization and handling translations.

8029.6k](/packages/skillshare-formatphp)[smousss/laravel-globalize

Make Laravel projects translatable in a matter of seconds!

2266.3k](/packages/smousss-laravel-globalize)[delight-im/i18n

Internationalization and localization for PHP

625.2k3](/packages/delight-im-i18n)[mediawiki/translate

The only standard solution to translate any kind of text with an avant-garde web interface within MediaWiki, including your documentation and software

457.9k](/packages/mediawiki-translate)

PHPackages © 2026

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