koseduhemak/zf3-locale-router 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

koseduhemak/zf3-locale-router

Composer 安装命令:

composer require koseduhemak/zf3-locale-router

包简介

Setup language-aware routes in Zend Framework 3 applications like f.e. www.example.com/de/my/uri for German or www.example.com/en/my/uri for English.

README 文档

README

Build Status Coverage Status

This module is intended to implement URIs like http://www.example.com/de/path/path2 or http://www.example.com/en/path/path2 in your ZF3 application. To achieve this, multiple strategies can be used to extract the best suited locale for a user (and redirect him to the correct uri). This is f.e. necessary for SEO. If you need to extract the current locale, you can use \Locale::getDefault(); to return the current set locale (f.e. de_DE).

The strategies are processed in the order you configured them and is stopped as soon as the locale could be extracted.

Thanks to the creators of the modules https://github.com/basz/SlmLocale and https://github.com/xelax90/zf2-language-route, from which I took a little bit inspiration from.

If you like my module, you can buy me a beer or some coffee: https://www.paypal.me/koseduhemak

Installation

Install via composer:

$ composer require koseduhemak/zf3-locale-router

Usage

Read more about configuration options and different extracting / persisting strategies: configuration manual.

Buy me a beer / coffee

If you like my module, you can buy me a beer or some coffee: https://www.paypal.me/koseduhemak

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-12-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固