yii2-bridge/slug-behavior 问题修复 & 功能扩展

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

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

yii2-bridge/slug-behavior

最新稳定版本:v0.1.2

Composer 安装命令:

composer require yii2-bridge/slug-behavior

包简介

Slug behavior for Bridge

README 文档

README

Yii2 bridge slug behavior

This code is inspired by https://github.com/zelenin/yii2-slug-behavior, with correction of errors related to the Kazakh language. Full documentation about this behavior, you can read on the above repository.

Installation

Composer

The preferred way to install this extension is through Composer.

Either run composer require yii2-bridge/slug-behavior:^0.1

or add "yii2-bridge/slug-behavior": "^0.1" to the require section of your composer.json

Using

Attach the behavior in your model:

public function behaviors()
{
    return [
        'slug' => [
            'class' => 'Bridge\Slug\BridgeSlugBehavior',
            'slugAttribute' => 'slug',
            'attribute' => 'title',
            // If intl extension is enabled, see http://userguide.icu-project.org/transforms/general.
            'transliterateOptions' => 'Russian-Latin/BGN; Any-Latin; Latin-ASCII; NFD; [:Nonspacing Mark:] Remove; NFC;'
        ],
    ];
}

Author

Altynbek Kazezov, e-mail: altinbek__97@mail.ru

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2018-06-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固