vuvanly/not-operators-helpers

Define function for NOT operators of built-in functions in PHP

1.0.2 2021-11-03 07:46 UTC

This package is auto-updated.

Last update: 2025-06-29 02:00:59 UTC


README

Define function for NOT operators of built-in functions in PHP

Usage

Instead of use ! operator like below.

if (!empty($value)) {}

When I use ! operator, I feel like my brain take 2 times to translate it to not keyword. So we can change to use like below:

if (notempty($value)) {}

For list of functions you can reference to file src/helpers.php

How to install

composer require vuvanly/not-operators-helpers