承接 jiemoon/chinese-slug 相关项目开发

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

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

jiemoon/chinese-slug

Composer 安装命令:

composer require jiemoon/chinese-slug

包简介

Laravel Package for translate string to english, then use it to create a slug

README 文档

README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

Laravel Package for translate string to english, then use it to create a slug.

Structure

If any of the following are applicable to your project, then the directory structure should follow industry best practises by being named the following..

src/
tests/

Install

Via Composer

$ composer require jiemoon/chinese-slug

Usage

Modify .env, Add Biadu Fanyi Config.

You can get the config, after register an account in api.fanyi.baidu.com

BAIDU_FANYI_API_ID=xxx
BAIDU_FANYI_API_SECRET=xxx

Edit cofig/app.php Add Provider and Alias

        Jiemoon\ChineseSlug\ChineseSlugServiceProvider::class,
        ...
        'ChineseSlug' => Jiemoon\ChineseSlug\Facades\ChineseSlug::class,
$slug = \ChineseSlug::generateUniqueSlug($title, 'posts');
# or
$slug = app('chineseslug')->generateUniqueSlug($title, 'posts');

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

$ phpunit

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-04-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固