PHPackages                             aza/clibase - 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. aza/clibase

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

aza/clibase
===========

AzaCliBase - Anizoptera CMF component with basic functionality and helper methods for CLI and Daemon applications (forks, libevent, etc..).

v1.1(12y ago)129.1k2MITPHPPHP &gt;=5.3.3

Since Feb 27Pushed 12y ago1 watchersCompare

[ Source](https://github.com/Anizoptera/AzaCliBase)[ Packagist](https://packagist.org/packages/aza/clibase)[ Docs](https://github.com/Anizoptera/AzaCliBase)[ RSS](/packages/aza-clibase/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (2)

AzaCliBase
==========

[](#azaclibase)

Anizoptera CMF component with basic functionality and helper methods for CLI and Daemon applications (forks, libevent, etc..).

[![Build Status](https://camo.githubusercontent.com/2bcfaad7cab2465e7bd6cad48de89255f10a19c3f314584f129194c8d772729f/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f416e697a6f70746572612f417a61436c69426173652e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/Anizoptera/AzaCliBase)

Table of Contents
-----------------

[](#table-of-contents)

1. [Introduction](#introduction)
2. [Requirements](#requirements)
3. [Optional requirements](#optional-requirements)
4. [Installation](#installation)
5. [Credits](#credits)
6. [License](#license)
7. [Links](#links)

Introduction
------------

[](#introduction)

Provides convenient API for commonly needed tasks in CLI or Daemon applications.

**Some features:**

- Detaching process from the controlling terminal;
- Fork wrapper (with libevent base reinitializing if needed);
- Signals and exit codes reference;
- Signals hadling and simple waiting (with pcntl);
- Get current tty width in columns;
- Get running command by PID;
- Kill process tree;
- Change process title;
- ... other;

Requirements
------------

[](#requirements)

- PHP 5.3.3 (or later);
- Unix system;
- [pcntl](http://php.net/pcntl);
- [posix](http://php.net/posix);

Optional requirements
---------------------

[](#optional-requirements)

- [proctitle](http://php.net/proctitle) extension to change process title;
- [aza/libevent](https://packagist.org/packages/aza/libevent) and [libevent](http://php.net/libevent) extension to store one main event base for application;

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

[](#installation)

The recommended way to install AzaCliBase is [through composer](http://getcomposer.org). You can see [package information on Packagist](https://packagist.org/packages/aza/clibase).

```
{
	"require": {
		"aza/clibase": "~1.0"
	}
}
```

Credits
-------

[](#credits)

AzaCliBase is a part of [Anizoptera CMF](https://github.com/Anizoptera), written by [Amal Samally](http://azagroup.ru/about/#amal) (amal.samally at gmail.com) and [AzaGroup](http://azagroup.ru/) team.

License
-------

[](#license)

Released under the [MIT](LICENSE.md) license.

Links
-----

[](#links)

- [Composer package](https://packagist.org/packages/aza/clibase)
- [Last build on the Travis CI](http://travis-ci.org/Anizoptera/AzaCliBase)
- [Project profile on the Ohloh](https://www.ohloh.net/p/AzaCliBase)
- Other Anizoptera CMF components on the [GitHub](https://github.com/Anizoptera) / [Packagist](https://packagist.org/packages/aza)
- (RU) [AzaGroup team blog](http://azagroup.ru/)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

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

Total

2

Last Release

4738d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/356b06126f37416ba259cc00868ae0960bad500f459186a25a7cc3b90c80fcb5?d=identicon)[amal](/maintainers/amal)

---

Top Contributors

[![art-shen](https://avatars.githubusercontent.com/u/423417?v=4)](https://github.com/art-shen "art-shen (18 commits)")

---

Tags

anizoptera-cmfclicomposerdaemon-applicationslibeventpackagistpcntlphpphp-librarysignaltravisclihelperutilitysignalposixforkdaemonpcntllibeventexit\_code

### Embed Badge

![Health badge](/badges/aza-clibase/health.svg)

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

###  Alternatives

[misterion/ko-process

Simple pcntl fork wrapper and process manager

177337.7k6](/packages/misterion-ko-process)[misterion/ko-worker

Ko-worker project is a base to develop amqp based message dispatchers

2713.4k](/packages/misterion-ko-worker)[buggregator/trap

A simple and powerful tool for debugging PHP applications.

2591.7M40](/packages/buggregator-trap)[arara/process

Provides a better API to work with processes on Unix-like systems

16861.7k2](/packages/arara-process)[clio/clio

Lightweight utility and helper classes for CLI applications

92279.2k3](/packages/clio-clio)[phlib/console-process

Console implementation.

1833.5k2](/packages/phlib-console-process)

PHPackages © 2026

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