2017 © Pedro Peláez
 

library stringy-patterns

A PHP string pattern detection library with multibyte support

image

aternus/stringy-patterns

A PHP string pattern detection library with multibyte support

  • Sunday, December 31, 2017
  • by aternus
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Stringy Patterns

A PHP string pattern detection library with multibyte support., (*1)

use Stringy\Patterns as P;

// get all patterns
$results_array = P::create('abcdabcdab')->getPatterns();

// get all patterns, include single occurrences
$results_array = P::create('abcdabcdab')->getPatterns(true);

Why?

Patterns are all around us, perhaps you will find something useful., (*2)

Installation

If you're using Composer to manage dependencies:, (*3)

composer require aternus/stringy-patterns

Then, after running composer update, you can load the class using Composer's autoloading:, (*4)

require 'vendor/autoload.php';

Otherwise, you can simply require the file directly:, (*5)

require_once 'vendor/aternus/stringy-patterns/src/Patterns.php';

And in either case, I'd suggest using an alias., (*6)

use Stringy\Patterns as P;

Please note that Stringy Patterns relies on the mbstring module for its underlying multibyte support. If the module is not found, and as long as you've installed Stringy Patterns using composer, Stringy Patterns will use symfony/polyfill-mbstring. For OSX users, it's a default for any version of PHP installed with homebrew. If compiling PHP from scratch, it can be included with the --enable-mbstring flag., (*7)

Other Useful Libraries

  • Stringy: A PHP string manipulation library with multibyte support

License

Released under the MIT License - see LICENSE.md for details., (*8)

The Versions

31/12 2017

dev-master

9999999-dev https://github.com/Aternus/stringy-patterns

A PHP string pattern detection library with multibyte support

  Sources   Download

MIT

The Requires

 

The Development Requires

helpers utility utf-8 string utils methods detection multibyte utf

31/12 2017

1.0.1

1.0.1.0 https://github.com/Aternus/stringy-patterns

A PHP string pattern detection library with multibyte support

  Sources   Download

MIT

The Requires

 

The Development Requires

helpers utility utf-8 string utils methods detection multibyte utf

31/12 2017

1.0.0

1.0.0.0 https://github.com/Aternus/stringy-patterns

A PHP string pattern detection library with multibyte support

  Sources   Download

MIT

The Requires

 

The Development Requires

helpers utility utf-8 string utils methods detection multibyte utf