adamlc/lettercase

A tool to convert from and to camelCase, snake_case, PascalCase and Path/Form

0.1.0 2013-09-27 08:21 UTC

This package is not auto-updated.

Last update: 2024-12-16 16:46:11 UTC


README

A tool to convert from and to camelCase, snake_case, PascalCase and Path/Form.

This fork has moderinized the Class structure a bit, added composer support and added PSR-2 compliance

USAGE

<?php
$letterCase = new Adamlc\LetterCase\LetterCase();

$snake_case = $letterCase->snake("PascalCase"); // => pascal_case
$camelCase = $letterCase->camel("PascalCase"); // => pascalCase
$PascalCase = $letterCase->pascal("PascalCase"); // => PascalCase
$path_form = $letterCase->path("PascalCase"); // => Pascal/Case