PHPackages                             ujiro2017/fixnames - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. ujiro2017/fixnames

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

ujiro2017/fixnames
==================

A code snippet that fixes name input by user. It removes spaces and none word characters and set the first letter in each name to upper case. Arguments are passed by referece.

0.1.1(2y ago)04MITPHP

Since Jul 17Pushed 2y ago1 watchersCompare

[ Source](https://github.com/jiro2017/FixNames)[ Packagist](https://packagist.org/packages/ujiro2017/fixnames)[ RSS](/packages/ujiro2017-fixnames/feed)WikiDiscussions main Synced today

READMEChangelog (2)DependenciesVersions (3)Used By (0)

FixNames
========

[](#fixnames)

A PHP based function that fixes user inputted names

Requirements
------------

[](#requirements)

This library requires PHP version 5.0 and above

Install
-------

[](#install)

It is recommended that you install this library using PHP composer. If you don't have composer installed on your machine you can do so by visiting  and follow the instuctions there.

If composer is already installed in your machine, you can install this package by opening the command line terminal and typing the following

```
composer require jiro2017/Fixnames
```

How to use
----------

[](#how-to-use)

After installing the package on your directory. include composer autoload on your PHP project by doing the following

```
require_once "vendor/autoload.php";
```

Next include the FixNames package by writing the following code on the next line after the require\_once code.

```
use function FixNames\fix_names;
```

You can make use of the fix\_names function by calling the following lines of code

```
$firstname = " John";
$middlename = "doe ";
$surname = "MIKE";

echo "Unfixed names: $surname $firstname $middlename"; // Unfixed Names: Mike John doe

fix_names($surname, $firstname, $middlename);

echo "Fixed names: $surname $firstname $middlename"; // Fixed Names: Mike John Doe
```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

1082d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/73388134?v=4)[Ujiro Oduokpe](/maintainers/jiro2017)[@jiro2017](https://github.com/jiro2017)

---

Top Contributors

[![jiro2017](https://avatars.githubusercontent.com/u/73388134?v=4)](https://github.com/jiro2017 "jiro2017 (14 commits)")

### Embed Badge

![Health badge](/badges/ujiro2017-fixnames/health.svg)

```
[![Health](https://phpackages.com/badges/ujiro2017-fixnames/health.svg)](https://phpackages.com/packages/ujiro2017-fixnames)
```

###  Alternatives

[marcosh/php-validation-dsl

A DSL for validating data in a functional fashion

483.9k](/packages/marcosh-php-validation-dsl)

PHPackages © 2026

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