PHPackages                             organiseyou/name-service - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. organiseyou/name-service

ActiveLibrary

organiseyou/name-service
========================

v2.0(6mo ago)0131PHPPHP ^8.0

Since Feb 19Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/OrganiseYou/NameService)[ Packagist](https://packagist.org/packages/organiseyou/name-service)[ RSS](/packages/organiseyou-name-service/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (7)Used By (0)

Name service
============

[](#name-service)

This is a library that convert the names that are used in projects.

Add service to an project
-------------------------

[](#add-service-to-an-project)

```
composer req organiseyou/name-service

```

Usage
-----

[](#usage)

### Use it the service

[](#use-it-the-service)

```
$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
```

#### Overwrite the default transformer

[](#overwrite-the-default-transformer)

Sometimes we need to overwrite the default transformer

```
$service = new Service(
    'organise-you',
    fn (string $slug) => ConvertService::urlToName($slug)
);

$value = $service->toDatabase()
// where $value is ORGANISE_YOU
```

### Use the static functions

[](#use-the-static-functions)

#### Convert an name from url to an internal name

[](#convert-an-name-from-url-to-an-internal-name)

```
$internalName = Organiseyou\NameService\ConvertService::urlToName($name);

```

#### Convert an friendly written name to an internal name

[](#convert-an-friendly-written-name-to-an-internal-name)

```
$internalName = Organiseyou\NameService\ConvertService::saveConvert($name);

```

### Convert an internal name to an url friendly name

[](#convert-an-internal-name-to-an-url-friendly-name)

```
$urlFriendlyName = ConvertService::convertNameToId($internalName);

```

### Convert an internal name to a camelcase name

[](#convert-an-internal-name-to-a-camelcase-name)

```
$camelCase = ConvertService::toCamelCase($internalName);

```

Run tests
---------

[](#run-tests)

To run the tests, first clone the project to an repository

```
git clone git@github.com:OrganiseYou/NameService.git

```

And go to the directory

```
cd NameService

```

Run composer install

```
php ./vendor/bin/phpunit tests

```

Upgrade v1 to v2
----------------

[](#upgrade-v1-to-v2)

I did changed the class name, change the use case from

```
use Organiseyou\NameService\ConvertService;
```

to

```
use Organiseyou\NameService\Convert as ConvertService;
```

And remove `Organiseyou\NameService` and it is backwards compatible.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance66

Regular maintenance activity

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 82.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~325 days

Total

4

Last Release

202d ago

Major Versions

v1.2 → v2.02025-10-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/c02ea57a258994d3f586ba5c58bd3d66bac8567bd5501466bb75a0faad786aa9?d=identicon)[jorisros](/maintainers/jorisros)

---

Top Contributors

[![jorisros](https://avatars.githubusercontent.com/u/752283?v=4)](https://github.com/jorisros "jorisros (14 commits)")[![jorisros-boerschappen](https://avatars.githubusercontent.com/u/212753631?v=4)](https://github.com/jorisros-boerschappen "jorisros-boerschappen (3 commits)")

---

Tags

hacktoberfestlibraryphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/organiseyou-name-service/health.svg)

```
[![Health](https://phpackages.com/badges/organiseyou-name-service/health.svg)](https://phpackages.com/packages/organiseyou-name-service)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
