1. Go to this page and download the library: Download organiseyou/name-service 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/ */
organiseyou / name-service example snippets
$service = new Service('organise_you');
$capitals = $service->toDatabase();
//where $value is ORGANISE_YOU
$capitals = $service->toSlug();
//where $value is organise-you
$capitals = $service->toPascalCase();
//where $value is OrganiseYou
$capitals = $service->toCamelCase();
//where $value is organiseYou
$service = new Service(
'organise-you',
fn (string $slug) => ConvertService::urlToName($slug)
);
$value = $service->toDatabase()
// where $value is ORGANISE_YOU
use Organiseyou\NameService\ConvertService;
use Organiseyou\NameService\Convert as ConvertService;
php ./vendor/bin/phpunit tests
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.