PHP code example of avro / case-bundle
1. Go to this page and download the library: Download avro/case-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
avro / case-bundle example snippets
php
// app/AppKernel.php
new Avro\CaseBundle\AvroCaseBundle
php
$converter = $this->container->get('avro_case.converter');
$camelCaseFormat = $converter->toCamelCase($str);
$pascalCaseFormat = $converter->toPascalCase($str);
$titleCaseFormat = $converter->toTitleCase($str);
$underscoreCaseFormat = $converter->toUnderscoreCase($str);