2017 © Pedro Peláez
 

symfony-bundle case-bundle

Symfony2 Case Converter Bundle

image

avro/case-bundle

Symfony2 Case Converter Bundle

  • Wednesday, February 17, 2016
  • by jdewit
  • Repository
  • 2 Watchers
  • 4 Stars
  • 56,367 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 3 Forks
  • 2 Open issues
  • 3 Versions
  • 11 % Grown

The README.md

AvroCaseBundle Build Status

Convert strings or an array of strings to different case formats., (*1)

Supports: camelCase, PascalCase, Title Case, and underscore_case., (*2)

Installation

This bundle is listed on packagist., (*3)

Simply add it to your apps composer.json file, (*4)

``` js "avro/case-bundle": "0.1.2", (*5)


Enable the bundle in the kernel: ``` php // app/AppKernel.php new Avro\CaseBundle\AvroCaseBundle

Configuration

``` yaml avro_case: use_twig: false #disable the twig extension (true by default), (*6)


Usage ----- ``` php $converter = $this->container->get('avro_case.converter'); $camelCaseFormat = $converter->toCamelCase($str); $pascalCaseFormat = $converter->toPascalCase($str); $titleCaseFormat = $converter->toTitleCase($str); $underscoreCaseFormat = $converter->toUnderscoreCase($str);

The following filters are also available if you use Twig, (*7)

jinja {{ var | camel }} {{ var | pascal }} {{ var | title }} {{ var | underscore }}, (*8)

The Versions

17/02 2016

dev-master

9999999-dev http://github.com/jdewit/AvroCaseBundle

Symfony2 Case Converter Bundle

  Sources   Download

MIT

The Requires

 

by Joris de Wit

converter title camel pascal

15/01 2013

v0.1.2

0.1.2.0 http://github.com/jdewit/AvroCaseBundle

Symfony2 Case Converter Bundle

  Sources   Download

MIT

The Requires

 

by Joris de Wit

converter title camel pascal

21/12 2012

v0.1.1

0.1.1.0 http://github.com/jdewit/AvroCaseBundle

Symfony2 Case Converter Bundle

  Sources   Download

MIT

The Requires

 

by Joris de Wit

converter title camel pascal