PHPackages                             james-pro/string-to-number - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. james-pro/string-to-number

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

james-pro/string-to-number
==========================

Convert strings to numbers/floats in PHP

1.0.3(3y ago)01.9k↓33.3%proprietaryPHPPHP ^8.0

Since Nov 9Pushed 3y ago1 watchersCompare

[ Source](https://github.com/petermol1234/string-to-number)[ Packagist](https://packagist.org/packages/james-pro/string-to-number)[ Docs](https://jamespro.nl)[ RSS](/packages/james-pro-string-to-number/feed)WikiDiscussions main Synced 1mo ago

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

James PRO String to Number
==========================

[](#james-pro-string-to-number)

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

[](#requirements)

- PHP version 8.0 or higher

Easy Installation
=================

[](#easy-installation)

### Install with composer

[](#install-with-composer)

To install with [Composer](https://getcomposer.org/), simply require the latest version of this package.

```
composer require james-pro/string-to-number
```

Make sure that the autoload file from Composer is loaded.

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

[](#how-to-use)

```
use JamesPro\StringToNumber;

$number = Format::makeNumber('123,456789',2);
echo $number;
// 123.46

$number = Format::makeNumber('123,4444456789',2);
echo $number;
// 123.45
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

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

4

Last Release

1286d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/83453a3b757844425f8d932dbb844ab30160f13619e7037efab3c6e144b799f0?d=identicon)[petermol1234](/maintainers/petermol1234)

### Embed Badge

![Health badge](/badges/james-pro-string-to-number/health.svg)

```
[![Health](https://phpackages.com/badges/james-pro-string-to-number/health.svg)](https://phpackages.com/packages/james-pro-string-to-number)
```

###  Alternatives

[mascame/arrayer

Array manipulation with dot notation. Also prepares an array to be put in a file. Very useful for config files.

141.4k2](/packages/mascame-arrayer)

PHPackages © 2026

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