PHPackages                             air-petr/php-console-cleaner - 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. [CLI &amp; Console](/categories/cli)
4. /
5. air-petr/php-console-cleaner

ActiveLibrary[CLI &amp; Console](/categories/cli)

air-petr/php-console-cleaner
============================

Cleaner for PHP console applications

v1.0.0(4y ago)061MITPHPPHP &gt;=7.4

Since Feb 10Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Air-Petr/php-console-cleaner)[ Packagist](https://packagist.org/packages/air-petr/php-console-cleaner)[ RSS](/packages/air-petr-php-console-cleaner/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (2)Used By (1)

PHP Console Cleaner
===================

[](#php-console-cleaner)

Clear a text from the console.

Instalation
-----------

[](#instalation)

`composer require air-petr/php-console-cleaner`

Usage
-----

[](#usage)

```
require __DIR__ . '/../vendor/autoload.php';

use AirPetr\ConsoleCleaner;

$cleaner = new ConsoleCleaner();

echo "Line 1\n";

// -> Line 1

echo "Line 2\n";

// -> Line 1
// -> Line 2

$numberOfLinesToClean = 1;
$cleaner->clean($numberOfLinesToClean);

// -> Line 1
```

Demo
----

[](#demo)

You can run examples in your console:

```
php demo/index.php
php demo/timer.php
```

###  Health Score

22

—

LowBetter than 23% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

1548d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dc29160cfd4432204e4df0fbab4bfcc6e7b1ba471255e64146b93a604c7c8e72?d=identicon)[air-petr](/maintainers/air-petr)

---

Top Contributors

[![Air-Petr](https://avatars.githubusercontent.com/u/15061863?v=4)](https://github.com/Air-Petr "Air-Petr (9 commits)")

---

Tags

consoleprintecho

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/air-petr-php-console-cleaner/health.svg)

```
[![Health](https://phpackages.com/badges/air-petr-php-console-cleaner/health.svg)](https://phpackages.com/packages/air-petr-php-console-cleaner)
```

###  Alternatives

[symfony/console

Eases the creation of beautiful and testable command line interfaces

9.8k1.1B11.2k](/packages/symfony-console)[psy/psysh

An interactive shell for modern PHP.

9.8k545.6M713](/packages/psy-psysh)[nunomaduro/collision

Cli error handling for console/command-line PHP applications.

4.6k331.8M8.4k](/packages/nunomaduro-collision)[nunomaduro/termwind

It's like Tailwind CSS, but for the console.

2.5k239.8M282](/packages/nunomaduro-termwind)[wp-cli/php-cli-tools

Console utilities for PHP

68325.0M364](/packages/wp-cli-php-cli-tools)

PHPackages © 2026

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