承接 pjhl/yii2-multilanguage 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

pjhl/yii2-multilanguage

最新稳定版本:0.2.1

Composer 安装命令:

composer require pjhl/yii2-multilanguage

包简介

Multi Language support for Yii2 Framework.

README 文档

README

This extension allows you to do multi-language sites on yii2. Instead, an informal specification uses the article "Multi-regional and multilingual sites" (Google).

Note: extension is under development.

Эта инструкция доступна на русском языке.

Features

  • Supports an unlimited number of languages.
  • Page language inserted into the link as a directory.
  • Correct work with the settings yii\web\UrlManager: enablePrettyUrl and showScriptName.
  • Site works correctly in subdirectories (eg, http://example.com/sub/directory/frontend/web/ru/site/login).
  • The ability to select the language in the cookie. In this case, the script will make a redirect.
  • Redirects just for GET-requests. POST, Ajax XHR will work correctly.
  • There is helper to change the language (it is easy to use links or bootstrap dropdown).
  • CRUD-actions to quickly develop the admin modules.
  • Support of <link rel="alternate" ... (TODO: make help).

Examples of links

This type of links with the settings enablePrettyUrl = true; showScriptName = false. Examples of other settings yii\web\UrlManager can be found here (TODO: make help).

Installing and configuring extensions

Run tests

php -S localhost:8090 -t advanced
composer run-script test

Before starting the test, you must have installed codeception.

Task list

  • Rewrite Controller->findModel(...)
  • Make a working example of the module "page"
  • Cover the test more code
  • Problem with text site/error. Session Flash Data (?)
  • Detect language by IP (country) (?)

统计信息

  • 总下载量: 6.03k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 2
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-10-12