2017 © Pedro Peláez
 

library naming-convention-converter

This little package includes string utils which for example can convert underscore_string to camelCased and vice-versa

image

cve/naming-convention-converter

This little package includes string utils which for example can convert underscore_string to camelCased and vice-versa

  • Tuesday, July 26, 2016
  • by cve
  • Repository
  • 1 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

cve/naming-convention-converter

Latest Version on Packagist ![Software License][ico-license] Build Status ![Total Downloads][ico-downloads], (*1)

This library ships with simple naming convention converters., (*2)

Install

Via Composer, (*3)

``` bash $ composer require cve/naming-convention-converter, (*4)


## Usage ``` php use Cve\Naming\Validator\Argument; use Cve\Naming\Converter\CamelCaseToUnderscore; use Cve\Naming\Converter\UnderscoreToCamelCase; $validator = new Argument(); $camelCaseToUnderscoreConverter = new CamelCaseToUnderscore($validator); $underscoreToCamelCaseConverter = new UnderscoreToCamelCase($validator); // CamelCase --> camel_case $underscore = $camelCaseToUnderscoreConverter->convert('CamelCase'); // underscore_convention --> UderscoreConvention $camelCase = $underscoreToCamelCaseConverter->convert('underscore_convention');

Testing

bash $ composer test, (*5)

Contributing

Please see CONTRIBUTING and CONDUCT for details., (*6)

Credits

License

The MIT License (MIT). Please see License File for more information., (*7)

The Versions

26/07 2016

dev-master

9999999-dev https://github.com/cve/naming-convention-converter

This little package includes string utils which for example can convert underscore_string to camelCased and vice-versa

  Sources   Download

MIT

The Requires

  • php ~5.6|~7.0

 

The Development Requires

by Karol Fiturski

string utils cve naming-convention-converter