k1low/fuzzy
Composer 安装命令:
composer require k1low/fuzzy
包简介
Fuzzy plugin for CakePHP
README 文档
README
Adjust fuzzy input!!
Usage
For example, add the following code in Post.php.
<?php
class Post extends AppModel {
public $actsAs = array('Fuzzy.Adjustable');
public $convertFields = array(
array('field' => 'title',
'mb_convert_kana' => 'a', // mb_convert_kana()
'encoding' => 'UTF-8'),
array('field' => 'zip',
'postal_split' => array('zip1', 'zip2'), // split zip code
),
);
}
And see test case!
License
under MIT License
AdjustableBehavior::mb_str_replace() original license
@package mb_str_replace
@version Release 3
@author HiNa <hina@bouhime.com>
@copyright Copyright (C) 2006-2007,2011 by HiNa <hina@bouhime.com>. All rights reserved.
@license https://github.com/fetus-hina/mb_str_replace/blob/master/LICENSE 2-cause BSD License(Simplified BSD License)
@link http://fetus.k-hsu.net/document/programming/php/mb_str_replace.html
@link https://github.com/fetus-hina/mb_str_replace
统计信息
- 总下载量: 45
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-09-02