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 1mo ago

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

1032d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ae70ed524804d53cb53b521a0f0bb1005169f963cec77f99b44617c50005c47?d=identicon)[jiro2017](/maintainers/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

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

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