k1low / fuzzy
CakePHP 的模糊插件
2.5.5
2014-10-23 06:45 UTC
Requires
Requires (Dev)
- phpunit/phpunit: 3.7.*
This package is auto-updated.
Last update: 2024-09-06 09:01:41 UTC
README
调整模糊输入!!
用法
例如,在 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
),
);
}
查看测试用例!
许可证
MIT 许可证下
AdjustableBehavior::mb_str_replace() 原始许可证
@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