ianlet / stringfunctions
Simple functions to manipulate strings
dev-master
2014-08-04 09:30 UTC
Requires
- php: >=5.4
Requires (Dev)
- phpspec/phpspec: dev-master
This package is not auto-updated.
Last update: 2024-09-24 03:11:49 UTC
README
PHP Utilities to manipulate strings
Usage
<?php use Ianlet\StringFunctions\StringFunctions; // Format a string to a snake case string $snakeCase = StringFunctions::snakeCase($string); // Generate the slug of a string with a given delimiter (default delimiter is '-') $slug = StringFunctions::slug($string, $delimiter);
Installation
You can install StringFunctions with Composer:
{ "require": { "ianlet/stringfunctions": "dev-master" } }