chilimatic / transformer-component
transformer component for the chilimatic-framework
Installs: 185
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/chilimatic/transformer-component
Requires
- php: >=7
- chilimatic/interfaces-component: 2.*
Requires (Dev)
- phpunit/phpunit: 4.5.*
This package is auto-updated.
Last update: 2025-09-09 15:38:26 UTC
README
transformer-component
Transformer Component for the chilimatic framework
A simple lib to encapsulate string transformations into 1 specific class that can be chained
php > require_once('vendor/autoload.php'); php > $transformer = new \chilimatic\lib\Transformer\String\UnderScoreToCamelCase(); php > echo $transformer('my_test'); myTest
The idea was original from the usual "url to method" problem. I didn't want the url to be something like "thisIsMyCamelCaseAction" because it's easier to misread than "this-is-my-camel-case-action" because of the whitespace characters but since im PSR compatible I switched to consistent camelcase.
for the other transformers please read the unit tests :) that's why i wrote them... If you find bugs just let me know.