PHPackages                             norse-blue/scalar-objects - 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. norse-blue/scalar-objects

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

norse-blue/scalar-objects
=========================

PHP Scalar Objects is a PHP library that implements scalar primitives as objects that can be extended with useful methods.

0.2.0(6y ago)21233MITPHPPHP ^7.4

Since Sep 17Pushed 3y ago1 watchersCompare

[ Source](https://github.com/norse-blue/php-scalar-objects)[ Packagist](https://packagist.org/packages/norse-blue/scalar-objects)[ Docs](https://norse.blue/open-source/php-scalar-objects)[ Fund](https://www.buymeacoffee.com/axelitus)[ GitHub Sponsors](https://github.com/axelitus)[ RSS](/packages/norse-blue-scalar-objects/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (8)Versions (4)Used By (3)

PHP Scalar Objects
==================

[](#php-scalar-objects)

 [![Stable Release](https://camo.githubusercontent.com/e8aae1e0390f4f9e91ec8dc47b23d0d42b4155931c9cd468909daa1356ca4ec4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6f7273652d626c75652f7363616c61722d6f626a656374732e7376673f7374796c653d666c61742d737175617265266c6162656c3d72656c65617365266c6f676f3d7061636b6167697374266c6f676f436f6c6f723d65636566663426636f6c6f72413d34633536366126636f6c6f72423d356538316163)](https://packagist.org/packages/norse-blue/scalar-objects) [![Build Status](https://camo.githubusercontent.com/e01cbfe19000785bd086e5b11ea387a96f744dfce73bb8f7230f620aa40120f0/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f636f6d2f6e6f7273652d626c75652f7068702d7363616c61722d6f626a656374732e7376673f7374796c653d666c61742d737175617265266c6162656c3d6275696c64266c6f676f3d7472617669732d6369266c6f676f436f6c6f723d65636566663426636f6c6f72413d34633536366126636f6c6f72423d383863306430)](https://travis-ci.com/norse-blue/php-scalar-objects) [![PHP Version](https://camo.githubusercontent.com/2d10d8aaab12b1750fa33db0b491b55e91c72e4a7979ea7109cc4b70acfff686/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6e6f7273652d626c75652f7363616c61722d6f626a656374732e7376673f7374796c653d666c61742d737175617265266c6162656c3d706870266c6f676f3d706870266c6f676f436f6c6f723d65636566663426636f6c6f72413d34633536366126636f6c6f72423d623438656164)](https://php.net/releases) [![Maintainability](https://camo.githubusercontent.com/5bbcf3843b040c4d1eed34a85d57635427ab7c2a121df017175d6351e5392b14/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6d61696e7461696e6162696c6974792f6e6f7273652d626c75652f7068702d7363616c61722d6f626a656374732e7376673f7374796c653d666c61742d737175617265266c6162656c3d6d61696e7461696e6162696c697479266c6f676f3d636f64652d636c696d617465266c6f676f436f6c6f723d65636566663426636f6c6f72413d34633536366126636f6c6f72423d383863306430)](https://codeclimate.com/github/norse-blue/php-scalar-objects) [![Test Coverage](https://camo.githubusercontent.com/0d8b3f3871116752a6a523807aeab1def031e0bd371fdabf0d723bdf275cda5a/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f636f7665726167652f6e6f7273652d626c75652f7068702d7363616c61722d6f626a656374732e7376673f7374796c653d666c61742d737175617265266c6162656c3d636f766572616765266c6f676f3d636f64652d636c696d617465266c6f676f436f6c6f723d65636566663426636f6c6f72413d34633536366126636f6c6f72423d383863306430)](https://codeclimate.com/github/norse-blue/php-scalar-objects) [![Total Downloads](https://camo.githubusercontent.com/8bbe1b90f00e6c47bd710907cbf54a047c0aad853963911a6bd3ea7a0140b732/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e6f7273652d626c75652f7363616c61722d6f626a656374732e7376673f7374796c653d666c61742d737175617265266c6162656c3d646f776e6c6f616473266c6f676f436f6c6f723d65636566663426636f6c6f72413d34633536366126636f6c6f72423d383863306430)](https://packagist.org/packages/norse-blue/scalar-objects) [![License](https://camo.githubusercontent.com/0fc0ab4030b393e09ba823da72aff451327d567a0228df1522ce2fc7da3d3924/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6e6f7273652d626c75652f7068702d7363616c61722d6f626a656374732e7376673f7374796c653d666c61742d737175617265266c6162656c3d6c6963656e7365266c6f676f436f6c6f723d65636566663426636f6c6f72413d34633536366126636f6c6f72423d613362653863)](https://github.com/norse-blue/php-scalar-objects/blob/master/LICENSE.md)

---

**PHP Scalar Objects** is a PHP library that implements scalar primitives as objects that can be extended with useful methods.

Installation
------------

[](#installation)

> Requirements:
>
> - [PHP 7.4+](https://php.net/releases)

Install this package using Composer:

```
composer require norse-blue/scalar-objects
```

Usage
-----

[](#usage)

To get more in-depth knowledge about this package, please refer to the [Official Documentation](https://norse-blue.github.io/php-scalar-objects/).

Changelog
---------

[](#changelog)

Please refer to the [CHANGELOG.md](CHANGELOG.md) file for more information about what has changed recently.

Contributing
------------

[](#contributing)

Contributions to this project are accepted and encouraged. Please read the [CONTRIBUTING.md](.github/CONTRIBUTING.md) file for details on contributions.

Credits
-------

[](#credits)

- [Axel Pardemann](https://github.com/axelitus)
- [All Contributors](../../contributors)

Security
--------

[](#security)

Please review our [security policy](https://github.com/norse-blue/php-scalar-objects/security/policy) to know how to report security vulnerabilities within this package.

Support the development
-----------------------

[](#support-the-development)

**Do you like this project? Support it by donating**

[![Buy me a coffee](docs/assets/images/buy-me-a-coffee.svg)](https://www.buymeacoffee.com/axelitus)

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT](LICENSE.md) license.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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 ~233 days

Total

2

Last Release

2192d ago

PHP version history (2 changes)0.1.0PHP ^7.3

0.2.0PHP ^7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/61386558d4fa03cc9de21d20e76f396d5568e0e647e1cdf18f12c87f1a5f87b5?d=identicon)[axelitus](/maintainers/axelitus)

![](https://www.gravatar.com/avatar/848678ae5df09575d50a2817e573c114ab2255eeb9593b6c9de741fe4f8d0f64?d=identicon)[NorseBlue](/maintainers/NorseBlue)

---

Top Contributors

[![axelitus](https://avatars.githubusercontent.com/u/732441?v=4)](https://github.com/axelitus "axelitus (37 commits)")

---

Tags

stringobjectnumericfloatscalarintbool

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/norse-blue-scalar-objects/health.svg)

```
[![Health](https://phpackages.com/badges/norse-blue-scalar-objects/health.svg)](https://phpackages.com/packages/norse-blue-scalar-objects)
```

###  Alternatives

[michaldudek/foundation

A set of useful PHP classes.

13111.9k13](/packages/michaldudek-foundation)[danog/phpstruct

PHP implementation of python's struct module.

1110.1k](/packages/danog-phpstruct)

PHPackages © 2026

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