Download the PHP package jiumikeji/jiumi-translatable without Composer
On this page you can find all versions of the php package jiumikeji/jiumi-translatable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package jiumi-translatable
Hyperf 多语言模型组件
该组件为数据库模型提供实现多语言的能力。
ps: 组件从 hyperf-ext/translatable
fork而来,原组件只支持到hyperf2.2版本。作者目前长时间未更新。
安装
发布配置
文件位于
config/autoload/translatable.php
。注意,该组件依赖
hyperf/translation
,不要忘记也要发布其配置并按需设置。
配置
使用示例
迁移
create_posts_table.php
create_post_translations_table
模型
Post.php
PostTranslation.php
获取已翻译的属性
存储已翻译的属性
填充翻译
All versions of jiumi-translatable with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.0
ext-swoole Version >=4.5
hyperf/config Version 3.0.*
hyperf/database Version 3.0.*
hyperf/db-connection Version 3.0.*
hyperf/di Version 3.0.*
hyperf/framework Version 3.0.*
hyperf/model-listener Version 3.0.*
hyperf/translation Version 3.0.*
ext-swoole Version >=4.5
hyperf/config Version 3.0.*
hyperf/database Version 3.0.*
hyperf/db-connection Version 3.0.*
hyperf/di Version 3.0.*
hyperf/framework Version 3.0.*
hyperf/model-listener Version 3.0.*
hyperf/translation Version 3.0.*
The package jiumikeji/jiumi-translatable contains the following files
Loading the files please wait ....