2017 © Pedro Peláez
 

library case-converter

A converter for strings in most popular cases

image

elleyeayeme/case-converter

A converter for strings in most popular cases

  • Saturday, September 16, 2017
  • by elleyeayeme
  • Repository
  • 2 Watchers
  • 8 Stars
  • 439 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 2482 % Grown

The README.md

Case Converter

This package allows strings in any of the popular formats (e.g. camel case and snake case) to be converted between one another., (*1)

Installation

Install the latest version with:, (*2)

composer require elleyeayeme/case-converter 

Basic Usage

<?php

use CaseConverter\CaseConverter;

$converter = new CaseConverter;

// Outputs a_string_with_99_numbers
echo $converter->convert('aStringWith99Numbers')
    ->from('camel')
    ->to('snake');

See the Supported Formats section for a list of the tokens to pass to from() and to() for conversion., (*3)

Supported Formats

The formats supported at present are:, (*4)

  • Camel case (token: camel) i.e. thisIsCamelCase
  • Kebab case (token: kebab) i.e. this-is-kebab-case
  • Snake case (token: snake) i.e. this_is_snake_case
  • Studly caps (token: studly) i.e. ThisIsStudlyCaps
  • Standard text (token: standard) i.e. this is standard text

License

Case Converter is licensed under the MIT license., (*5)

The Versions

16/09 2017

dev-master

9999999-dev

A converter for strings in most popular cases

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

by Liam McElroy

conversion camel snake kebab studly

16/09 2017

v1.0.0

1.0.0.0

A converter for strings in most popular cases

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

by Liam McElroy

conversion camel snake kebab studly