k1low / fuzzy

CakePHP 的模糊插件

资助包维护!
k1LoW

安装次数: 44

依赖: 0

建议者: 0

安全性: 0

星标: 1

关注者: 2

分支: 0

开放问题: 0

类型:cakephp-plugin

2.5.5 2014-10-23 06:45 UTC

This package is auto-updated.

Last update: 2024-09-06 09:01:41 UTC


README

调整模糊输入!!

Build Status

用法

例如,在 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