PHPackages                             wilbur-yu/hyperf-translatable - 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. wilbur-yu/hyperf-translatable

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

wilbur-yu/hyperf-translatable
=============================

A trait to make an model hold translations

3.1.0(2y ago)01.3kMITPHPPHP &gt;=8.0

Since Dec 18Pushed 2y ago1 watchersCompare

[ Source](https://github.com/wilbur-yu/hyperf-translatable)[ Packagist](https://packagist.org/packages/wilbur-yu/hyperf-translatable)[ RSS](/packages/wilbur-yu-hyperf-translatable/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (12)Versions (4)Used By (0)

说明
==

[](#说明)

项目自用.

本组件移植于 [spatie/laravel-translatable](https://github.com/spatie/laravel-translatable)使用方式相同. 只是适配了hyperf model 具体使用可以查看[README.md](https://github.com/spatie/laravel-translatable/blob/master/README.md)

> 该包适用于简单的模型多语言. 若是内容繁多且复杂的系统可以使用 [hyperf-ext/translatable](https://github.com/hyperf-ext/translatable)

安装
==

[](#安装)

```
composer require wilbur-yu/hyperf-translatable
```

发布配置文件
======

[](#发布配置文件)

```
php ./bin/hyperf vendor:publish wilbur-yu/hyperf-translatable
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

Every ~377 days

Total

3

Last Release

850d ago

Major Versions

v1.0 → 3.0.02023-01-15

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ba6eb722ff24398c7686e121aceabdc2265c883acb6685fa9abc9291f373e2b?d=identicon)[wilbur.yu](/maintainers/wilbur.yu)

---

Top Contributors

[![wilbur-yu](https://avatars.githubusercontent.com/u/7148309?v=4)](https://github.com/wilbur-yu "wilbur-yu (12 commits)")

---

Tags

phphyperfhyperf translatable

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/wilbur-yu-hyperf-translatable/health.svg)

```
[![Health](https://phpackages.com/badges/wilbur-yu-hyperf-translatable/health.svg)](https://phpackages.com/packages/wilbur-yu-hyperf-translatable)
```

###  Alternatives

[hyperf/odin

425.9k](/packages/hyperf-odin)[hyperf/swow-skeleton

A coroutine framework that focuses on hyperspeed and flexible, specifically use for build microservices and middlewares.

514.5k](/packages/hyperf-swow-skeleton)

PHPackages © 2026

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