k1low/fuzzy

Fuzzy plugin for CakePHP

Fund package maintenance!
k1LoW

Installs: 45

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

Type:cakephp-plugin

2.5.5 2014-10-23 06:45 UTC

This package is auto-updated.

Last update: 2024-11-06 09:16:34 UTC


README

Adjust fuzzy input!!

Build Status

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