2017 © Pedro Peláez
 

library case-convertor

Camel to snake case and snake to camel case convertor

image

todstoychev/case-convertor

Camel to snake case and snake to camel case convertor

  • Saturday, December 19, 2015
  • by todstoychev
  • Repository
  • 1 Watchers
  • 0 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

This a simple camel to snake case and snake to camel case string convertor., (*1)

Instalation

Use the common composer methods. The composer 'require command':, (*2)

composer require todstoychev/case-convertor, (*3)

or add to ypur composer.json in the 'require' section:, (*4)

"require": {
    "todstoychev/case-convertor": "dev-master"
}

and then run:, (*5)

composer update, (*6)

Usage

The module contains only one class with 2 static methods. To convert from snake to camel case use:, (*7)

    $result = \Todstoychev\CaseConvertor\Convertor::snakeToCamelCase('my_snake_case_string');

    echo $result; // Will produce 'mySnakeCaseString'

For camel to snake case you can use:, (*8)

    $result = \Todstoychev\CaseConvertor\Convertor::camelToSnakeCase('myCamelCaseString');

    echo $result; // Will produce 'my_camel_case_string'

Keep in mind that numbers are not affected by the convertion. For more information take a look at the unit tests in the 'tests' folder., (*9)

The Versions

19/12 2015

dev-master

9999999-dev https://github.com/todstoychev/case-convertor

Camel to snake case and snake to camel case convertor

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

by Todor Todorov

case camel snake convertor

19/12 2015

dev-develop

dev-develop https://github.com/todstoychev/case-convertor

Camel to snake case and snake to camel case convertor

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

by Todor Todorov

case camel snake convertor

19/12 2015

1.0.0

1.0.0.0 https://github.com/todstoychev/case-convertor

Camel to snake case and snake to camel case convertor

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

by Todor Todorov

case camel snake convertor

04/12 2015

0.1.1

0.1.1.0 https://github.com/todstoychev/case-convertor

Camel to snake case and snake to camel case convertor

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

by Todor Todorov

case camel snake convertor

04/12 2015

0.1.0

0.1.0.0 https://github.com/todstoychev/case-convertor

Camel to snake case and snake to camel case convertor

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

by Todor Todorov

case camel snake convertor