2017 © Pedro Peláez
 

library neko

Simple helpers for case transformations.

image

yuloh/neko

Simple helpers for case transformations.

  • Monday, March 21, 2016
  • by yuloh
  • Repository
  • 0 Watchers
  • 16 Stars
  • 6,814 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 10 % Grown

The README.md

Neko - Case tranformation functions for PHP

Neko is a small collection of case tranformation functions for PHP. They are as simple as possible with no external dependencies., (*1)

I wrote this library because I was tired of the other libraries out there not working like I expected. Neko can handle input in Title case, lower case, PascalCase, camelCase, kebab-case, SCREAMING-KEBAB-CASE, snake_case, and SCREAMING_SNAKE_CASE., (*2)

You can see how Neko stacks up against other case transformation libraries in the throwdown over here., (*3)

Install

Neko can be installed using composer., (*4)

``` bash $ composer require yuloh/neko, (*5)


## Usage ### Snake Case ```php use function Yuloh\Neko\snake_case; echo snake_case('Hello World'); // hello_world

Kebab Case

use function Yuloh\Neko\kebab_case;

echo kebab_case('Hello World'); // hello-world

Pascal Case

use function Yuloh\Neko\pascal_case;

echo pascal_case('Hello World'); // HelloWorld

Camel Case

use function Yuloh\Neko\camel_case;

echo camel_case('Hello World'); //helloWorld

The Versions

21/03 2016

dev-master

9999999-dev

Simple helpers for case transformations.

  Sources   Download

MIT

The Requires

  • php >=5.6.4

 

The Development Requires

21/03 2016

0.1.0

0.1.0.0

Simple helpers for case transformations.

  Sources   Download

MIT

The Requires

  • php >=5.6.4

 

The Development Requires