PHPackages                             neater/if - 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. neater/if

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

neater/if
=========

A package to make calling of if and else smarter and cleaner.

0.0.3(7y ago)126MITPHPPHP ^7.1

Since Dec 2Pushed 7y agoCompare

[ Source](https://github.com/bosunski/nice-if)[ Packagist](https://packagist.org/packages/neater/if)[ RSS](/packages/neater-if/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (2)Versions (5)Used By (0)

Nice If
=======

[](#nice-if)

[![Build Status](https://camo.githubusercontent.com/9c9e2693371e7fcf4c3e99f9084cdc9d57c4683e600ec924c475752bfa2f55c4/68747470733a2f2f7472617669732d63692e6f72672f626f73756e736b692f6e6963652d69662e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/bosunski/nice-if)

A package to make calling of if and else smarter and cleaner.

Seriously under development
===========================

[](#seriously-under-development)

Examples
--------

[](#examples)

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

[](#installation)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

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

Total

3

Last Release

2719d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cb3b5e6b0a837fdfc5fd192f4c8f3b3e2febab7ec553c5dd387653054b1a9554?d=identicon)[bosunski](/maintainers/bosunski)

---

Top Contributors

[![bosunski](https://avatars.githubusercontent.com/u/15146515?v=4)](https://github.com/bosunski "bosunski (22 commits)")

---

Tags

conditionconditionalsifttif this then thatif else

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/neater-if/health.svg)

```
[![Health](https://phpackages.com/badges/neater-if/health.svg)](https://phpackages.com/packages/neater-if)
```

###  Alternatives

[lamalama/laravel-wishlist

Make your models wishlistable

238.1k](/packages/lamalama-laravel-wishlist)[kibatic/datagrid-bundle

Datagrid for Symfony

1418.3k](/packages/kibatic-datagrid-bundle)[prettybx/support

Pretty Bitrix

195.5k1](/packages/prettybx-support)

PHPackages © 2026

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