PHPackages                             calmohallag/nullable-casting - 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. calmohallag/nullable-casting

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

calmohallag/nullable-casting
============================

PHP supports expression casting to primitive type (like int) by using “( type ) expression”, but it currently doesn't allow to use a nullable type as introduced by PHP 7.1 (e.g. ?int). This library provide functions that extend native php casting, adding nullable casting.

1.1(5y ago)113.9k↓33.9%MITPHPPHP &gt;=7.2

Since Oct 29Pushed 5y ago1 watchersCompare

[ Source](https://github.com/calmohallag/nullable-casting)[ Packagist](https://packagist.org/packages/calmohallag/nullable-casting)[ RSS](/packages/calmohallag-nullable-casting/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://github.com/calmohallag/nullable-casting).

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community7

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

Total

2

Last Release

1968d ago

PHP version history (2 changes)1.0PHP ^7.2

1.1PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/9400c83f93d7249bd2ee1ac94e54a653febf6894add6d18ea5b1fe9b9ea5190f?d=identicon)[calmohallag](/maintainers/calmohallag)

---

Top Contributors

[![calmohallag](https://avatars.githubusercontent.com/u/34070946?v=4)](https://github.com/calmohallag "calmohallag (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/calmohallag-nullable-casting/health.svg)

```
[![Health](https://phpackages.com/badges/calmohallag-nullable-casting/health.svg)](https://phpackages.com/packages/calmohallag-nullable-casting)
```

###  Alternatives

[darrynten/google-natural-language-php

PHP Google Natural Language Client with Extras

785.5k](/packages/darrynten-google-natural-language-php)

PHPackages © 2026

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