PHPackages                             bojian/tolgee-lang - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. bojian/tolgee-lang

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

bojian/tolgee-lang
==================

tolgee lang

v0.0.2(2y ago)07Apache-2.0PHPPHP &gt;=7.4

Since Jul 24Pushed 2y ago1 watchersCompare

[ Source](https://github.com/bojian-li/tolgee-lang)[ Packagist](https://packagist.org/packages/bojian/tolgee-lang)[ Docs](https://github.com/bojian-li/tolgee-lang)[ RSS](/packages/bojian-tolgee-lang/feed)WikiDiscussions main Synced 1mo ago

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

tolgee-lang
===========

[](#tolgee-lang)

request tolgee lang message

### Installation

[](#installation)

运行环境要求 PHP 7.4 及以上版本，以及[cURL](http://php.net/manual/zh/book.curl.php)。

#### tolgee翻译平台SDK

[](#tolgee翻译平台sdk)

> composer require bojian/tolgee-lang

.env配置，url翻译平台地址，api\_key翻译平台key

```
[tolgee]
url =
api_key =
```

```
 /**
 * 获取语言变量值
 * @param string $name
 * @param array $vars  替换使用的变量
 * @param string $lang
 * @return void
 */
$string = tolgeeLang('err_code_23268', [], 'en-us');
```

$vars配置文档[cURL](https://www.php.net/manual/zh/messageformatter.formatmessage.php)。

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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 ~0 days

Total

2

Last Release

1028d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/203892975cf9ce24c822d022e028d6c3e96bf674a23c58375256b93068adb6ea?d=identicon)[bojian-li](/maintainers/bojian-li)

---

Top Contributors

[![bojian69](https://avatars.githubusercontent.com/u/34238232?v=4)](https://github.com/bojian69 "bojian69 (1 commits)")

---

Tags

sdktolgee lang

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/bojian-tolgee-lang/health.svg)

```
[![Health](https://phpackages.com/badges/bojian-tolgee-lang/health.svg)](https://phpackages.com/packages/bojian-tolgee-lang)
```

###  Alternatives

[aws/aws-crt-php

AWS Common Runtime for PHP

416300.1M4](/packages/aws-aws-crt-php)[zumba/amplitude-php

PHP SDK for Amplitude

409.5M5](/packages/zumba-amplitude-php)[ennnnny/tbk

简约优雅的淘宝客SDK

29016.1k1](/packages/ennnnny-tbk)[anilcancakir/laravel-ai-sdk-skills

A skill system for Laravel AI SDK agents. Define reusable AI capabilities with SKILL.md files.

151.1k](/packages/anilcancakir-laravel-ai-sdk-skills)

PHPackages © 2026

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