ciatog/inflector

Simple PHP Inflector

1.0.0 2015-01-20 03:26 UTC

This package is not auto-updated.

Last update: 2024-05-11 15:24:06 UTC


README

Build Status Coverage Status

PHP Inflector

A simple inflection library for PHP

Usage

Install the latest version with composer require ciatog/inflector

<?php

use Ciatog\Inflector;

$inflector = new Inflector();

// Outputs: Testing 123
echo $inflector->humanise("testing-123");

// Outputs: testing_123
echo $inflector->machinise("testing 123");

// Outputs: testing-123
echo $inflector->dasherise("testing 123");

Author

Keith Webster - keith.webster@gmail.com - http://keith-webster.com

License

PHP Inflector is licensed under the MIT License - see the LICENSE.txt file for details