PHPackages                             foo9/blank\_present - 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. foo9/blank\_present

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

foo9/blank\_present
===================

The blank and present function for PHP.

1.0.1(11y ago)0588MITPHPPHP &gt;=5.4

Since Mar 25Pushed 11y ago1 watchersCompare

[ Source](https://github.com/foo9/blank_present)[ Packagist](https://packagist.org/packages/foo9/blank_present)[ Docs](https://github.com/foo9/blank_present)[ RSS](/packages/foo9-blank-present/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

blank\_present
==============

[](#blank_present)

[![Build Status](https://camo.githubusercontent.com/a9cd437986f99944a131be9349951b2d441897ecee9d87698015fb27de61269d/68747470733a2f2f7472617669732d63692e6f72672f666f6f392f626c616e6b5f70726573656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/foo9/blank_present)

The blank and present function for PHP.

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

[](#requirements)

PHP 5.4+

Usage
-----

[](#usage)

The blank function:

```
if (_blank($var)) {
    // do stuff
}
```

The present function:

```
if (_present($var)) {
    // do stuff
}
```

Running tests
-------------

[](#running-tests)

```
$ vendor/bin/phpunit
```

License
-------

[](#license)

MIT

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Total

2

Last Release

4069d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/45108fd11be0abf556ab378eefd29b97b7b79a3dea03c65cd7c3cea383401764?d=identicon)[ne0h12](/maintainers/ne0h12)

---

Top Contributors

[![foo9](https://avatars.githubusercontent.com/u/207183?v=4)](https://github.com/foo9 "foo9 (10 commits)")

---

Tags

presentblank

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/foo9-blank-present/health.svg)

```
[![Health](https://phpackages.com/badges/foo9-blank-present/health.svg)](https://phpackages.com/packages/foo9-blank-present)
```

###  Alternatives

[robertmarney/lara-hierarchial-collections

Transforms flat collections to a nested hierarchy

342.2k](/packages/robertmarney-lara-hierarchial-collections)

PHPackages © 2026

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