library naming-convention-converter
This library allows to apply different naming conventions.
bartoszbartniczak/naming-convention-converter
This library allows to apply different naming conventions.
- Sunday, February 19, 2017
- by BartoszBartniczak
- Repository
- 1 Watchers
- 0 Stars
- 10 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 3 Versions
- 0 % Grown
BartoszBartniczak\NamingConventionConverter
This library allows to apply different naming conventions.
Usage
camelCase to underscore
<?php
use BartoszBartniczak\NamingConventionConverter\CamelCaseToUnderscoreConverter;
use BartoszBartniczak\NamingConventionConverter\UnderscoreToCamelCaseConverter;
$camelCaseToUnderscoreConverter = new CamelCaseToUnderscoreConverter();
$camelCaseToUnderscoreConverter->convert('camelCaseToUnderscoreConverter');
// camelCaseToUnderscoreConverter -> camel_case_to_underscore_converter
$underscoreToCamelCaseConverter = new UnderscoreToCamelCaseConverter();
$underscoreToCamelCaseConverter->convert('camel_case_to_underscore_converter');
// camel_case_to_underscore_converter -> camelCaseToUnderscoreConverter
CamelCase to underscore
<?php
use BartoszBartniczak\NamingConventionConverter\PascalCaseToUnderscoreConverter;
use BartoszBartniczak\NamingConventionConverter\UnderscoreToPascalCaseConverter;
$pascalCaseToUnderscoreConverter = new PascalCaseToUnderscoreConverter();
$pascalCaseToUnderscoreConverter->convert('PascalCaseToUnderscoreConverter');
// PascalCaseToUnderscoreConverter -> pascal_case_to_underscore_converter
$underscoreToPascalCaseConverter = new UnderscoreToPascalCaseConverter();
$underscoreToPascalCaseConverter->convert('pascal_case_to_underscore_converter');
// pascal_case_to_underscore_converter -> PascalCaseToUnderscoreConverter
Lazy converter
Lazy converter does nothing. You can use it as plug, when you don't want to change nothing., (*1)
<?php
use BartoszBartniczak\NamingConventionConverter\LazyConverter;
$lazyConverter = new LazyConverter();
$lazyConverter->convert('i don\'t want to do anything');
// i don't want to do anything -> i don't want to do anything
dev-master
9999999-dev
This library allows to apply different naming conventions.
Sources
Download
Apache 2.0
The Requires
The Development Requires
by
Bartosz Bartniczak
1.1.1
1.1.1.0
This library allows to apply different naming conventions.
Sources
Download
Apache 2.0
The Requires
The Development Requires
by
Bartosz Bartniczak
1.0.0
1.0.0.0
This library allows to apply different naming conventions.
Sources
Download
Apache 2.0
The Requires
The Development Requires
by
Bartosz Bartniczak