vuvanly/not-operators-helpers

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

Maintainers

Package info

github.com/vuvanly/not-operators-helpers

pkg:composer/vuvanly/not-operators-helpers

Statistics

Installs: 5

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.2 2021-11-03 07:46 UTC

This package is auto-updated.

Last update: 2026-03-29 00:58:43 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