Git Product home page Git Product logo

strings's Introduction

Akimimi\Strings

Description

This library provides some string utilities.

EditDistance class calculates the edit distance between two strings. Wagner-Fischer algorithm is currently provided.

PlateUtil provides functions for plate number on vehicles.

Installation

This library support Add require with composer CLI.

composer require akimimi/strings

Otherwise, add require to your composer.json.

{
  "require": {
     "akimimi/strings": ">=1.0.0"
  }
}

Use Composer to install requires

composer install

Usage

After installation by composer, you can declare use for PlatUtil class.

<?php
use Akimimi\Strings\PlateUtil;

$plate1 = "京Q7BP06";
$plate2 = "晋7BP0A6";

$distance = PlateUtil::Distance($plate1, $plate2, 0.5); // return 2.5

Uninstall

With composer, we can remove library with composer CLI.

composer remove akimimi/strings

strings's People

Contributors

toboto avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.