2017 © Pedro Peláez
 

symfony-bundle levenshtein-bundle

Levenshtein function bundle for symfony2 and doctrine

image

jrk/levenshtein-bundle

Levenshtein function bundle for symfony2 and doctrine

  • Monday, May 21, 2018
  • by jreziga
  • Repository
  • 1 Watchers
  • 2 Stars
  • 888 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 15 % Grown

The README.md

Getting started with JrkLevenshteinBundle

Setup

JrkLevenshteinBundle requires Symfony and Doctrine, (*1)

  • Using composer

Add jrk/levenshtein-bundle as a dependency in your project's composer.json file:, (*2)

{
    "require": {
        "jrk/levenshtein-bundle": "dev-master"
    }
}

Update composer, (*3)

php composer update
or 
php composer.phar update
  • Add JrkLevenshteinBundle to your application kernel

``` php Install functions ``` php app/console jrk:levenshtein:install ``` That console line will install 2 functions in your database. You can inspect these functions in your mysql database by typing in a phpmyadmin sql prompt or in your favorite mysql client ``` sql SHOW FUNCTION STATUS; ``` Usage ----- - Using QueryBuilder ``` php _em->createQueryBuilder() ->select('user') ->from('FooBundle:User','user') ->where('LEVENSHTEIN(user.firstname,:searchString) setParameter('searchString',$searchString) ->setParameter('tolerance',$tolerance) ; return $queryBuilder->getQuery()->getResult(); } ?>, (*4)


- Using DQL ``` php _em->createQuery($dqlString) ->setParameter('searchString',$searchString) ->setParameter('tolerance',$tolerance) ; return $query->getResult(); } ?>

The Versions

21/05 2018

dev-master

9999999-dev http://github.com/jreziga/JrkLevenshteinBundle

Levenshtein function bundle for symfony2 and doctrine

  Sources   Download

MIT GNU GPL v2

The Requires

 

search doctrine levenshtein soundex

21/05 2018

v1.1.1

1.1.1.0 http://github.com/jreziga/JrkLevenshteinBundle

Levenshtein function bundle for symfony2 and doctrine

  Sources   Download

MIT

The Requires

 

search doctrine levenshtein soundex

21/09 2016

1.0

1.0.0.0 http://github.com/jreziga/JrkLevenshteinBundle

Levenshtein function bundle for symfony2 and doctrine

  Sources   Download

GNU GPL v2

The Requires

 

search doctrine levenshtein soundex