PHPackages                             henderjon/is\_cli - 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. henderjon/is\_cli

ActiveLibrary

henderjon/is\_cli
=================

adds a global constant for CLI environments

v1.0.1(11y ago)0812BSD-3-ClausePHPPHP &gt;=5.3.0

Since Aug 11Pushed 11y ago1 watchersCompare

[ Source](https://github.com/henderjon/is_cli)[ Packagist](https://packagist.org/packages/henderjon/is_cli)[ Docs](http://github.com/henderjon/is_cli)[ RSS](/packages/henderjon-is-cli/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (2)

is\_cli
=======

[](#is_cli)

Defines a constant for checking if the current process is being run via CLI.

usage
=====

[](#usage)

`if(IS_CLI){ /* noop */ }` or `if(is_cli()){ /* noop */ }`

[![Latest Stable Version](https://camo.githubusercontent.com/31816163cdcb686d5d46b890f7c77af906cc6071dc58f97762adb4cd0b10871a/68747470733a2f2f706f7365722e707567782e6f72672f68656e6465726a6f6e2f69735f636c692f762f737461626c652e737667)](https://packagist.org/packages/henderjon/is_cli)[![Build Status](https://camo.githubusercontent.com/2da08643013f9db2d00de428fce1649e402bc00294b80fa7f7173de966d0a6ff/68747470733a2f2f7472617669732d63692e6f72672f68656e6465726a6f6e2f69735f636c692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/henderjon/is_cli)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

3

Last Release

4298d ago

Major Versions

v0.1.0 → v1.0.02014-08-11

### Community

Maintainers

![](https://www.gravatar.com/avatar/15bb251b7550dc9a7ee1a7642fd6c4534f72797a17b3c913e9a15a4462979612?d=identicon)[henderjon](/maintainers/henderjon)

---

Top Contributors

[![henderjon](https://avatars.githubusercontent.com/u/114275?v=4)](https://github.com/henderjon "henderjon (5 commits)")

### Embed Badge

![Health badge](/badges/henderjon-is-cli/health.svg)

```
[![Health](https://phpackages.com/badges/henderjon-is-cli/health.svg)](https://phpackages.com/packages/henderjon-is-cli)
```

PHPackages © 2026

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