PHPackages                             instinct/types-autoboxing - 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. instinct/types-autoboxing

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

instinct/types-autoboxing
=========================

Wrapping primitive types into objects automatically

v1.0.0-BETA2(12y ago)1113MITPHPPHP &gt;=5.3.3

Since Apr 15Pushed 12y ago1 watchersCompare

[ Source](https://github.com/alquerci/php-types-autoboxing)[ Packagist](https://packagist.org/packages/instinct/types-autoboxing)[ Docs](https://github.com/alquerci/php-types-autoboxing/)[ RSS](/packages/instinct-types-autoboxing/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (4)Used By (0)

PHP types autoboxing
====================

[](#php-types-autoboxing)

An implementation of the experimental PHP extension [SPL Types](http://www.php.net/manual/book.spl-types.php).

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

[](#requirements)

PHP 5.3.3 or above (at least 5.3.4 recommended to avoid potential bugs)

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

[](#installation)

Using Composer, just add the following configuration to your `composer.json`:

```
{
    "require": {
        "instinct/types-autoboxing": "1.0.*"
    }
}
```

If you don't have Composer yet, download it following the instructions on  or just run the following command:

```
curl -sS https://getcomposer.org/installer | php
```

Now tell composer to download it by running the command:

```
php composer.phar update instinct/types-autoboxing
```

Examples
--------

[](#examples)

```
Bool::create($var); // Defined a new boolean type
$var = true;       // Assign it a new value
if ($var instanceof Bool) {
    // $var is always a Bool object
}
```

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

[](#contributing)

Fork the project, create a feature branch, and send us a pull request.

To ensure a consistent code base, you should make sure the code follows the [Coding Standards](http://symfony.com/doc/master/contributing/code/standards.html)which we borrowed from Symfony.

If you would like to help take a look at the [list of issues](https://github.com/alquerci/php-types-autoboxing/issues).

Contributors
------------

[](#contributors)

See the list of [contributors](https://github.com/alquerci/php-types-autoboxing/contributors) who participated in this project.

License
-------

[](#license)

This library is licensed under the MIT License - see the [LICENSE](https://github.com/alquerci/php-types-autoboxing/blob/master/LICENSE) file for details

Running Tests
-------------

[](#running-tests)

You can run the unit tests with the following command:

```
php composer.phar install --dev
phpunit
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

Total

2

Last Release

4519d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2987860?v=4)[Alexandre Quercia](/maintainers/alquerci)[@alquerci](https://github.com/alquerci)

---

Top Contributors

[![alquerci](https://avatars.githubusercontent.com/u/2987860?v=4)](https://github.com/alquerci "alquerci (20 commits)")

---

Tags

typesautoboxing

### Embed Badge

![Health badge](/badges/instinct-types-autoboxing/health.svg)

```
[![Health](https://phpackages.com/badges/instinct-types-autoboxing/health.svg)](https://phpackages.com/packages/instinct-types-autoboxing)
```

###  Alternatives

[cekurte/environment

A library to get the values from environment variables and process to php data types

5886.2k8](/packages/cekurte-environment)

PHPackages © 2026

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