pantagruel964/laravel5-yandex-slug 问题修复 & 功能扩展

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

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

pantagruel964/laravel5-yandex-slug

Composer 安装命令:

composer require pantagruel964/laravel5-yandex-slug

包简介

Generate slug into translit in according to Yandex rules for Laravel 5

README 文档

README

Laravel 5 has it's own function str_slug to revert cyrillic characters into translit. But it is not quite right for Yandex.

For example, if you make your URL like this: $slug = str_slug('ёлка') function return result elka. It's not good for SEO. Your URL won't be highlighted into the SERP: not highlighted into the serp

The package makes slug characters in according to Yandex rules, in particular such characters as ё, щ, я, ю, ж, ц. As result Yandex will highlight keyword in URL into the SERP highlighted into the serp

Installation

composer require pantagruel964/laravel5-yandex-slug

After updating composer, add the service provider and facade in config/app.php

'providers' => [
...
Pantagruel964\Laravel5YandexSlug\SlugServiceProvider::class
...
]

'aliases' => [
...
'Slug' => Pantagruel964\Laravel5YandexSlug\Facades\Slug::class
...
]

Using

$slug = Slug::make('ёлка')

License

This package for Laravel is open-sourced software licensed under the MIT license

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-01-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固