aza / clibase
AzaCliBase - Anizoptera CMF component with basic functionality and helper methods for CLI and Daemon applications (forks, libevent, etc..).
Installs: 28 749
Dependents: 2
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=5.3.3
Suggests
- ext-libevent: Used for storing one main event base for application and save availability flag
- ext-pcntl: Used everywhere in component. Really it's a requirement for normal work.
- ext-posix: Used everywhere in component. Really it's a requirement for normal work.
- ext-proctitle: Used to change process title
- aza/libevent: Used for storing one main event base for application
This package is not auto-updated.
Last update: 2024-12-21 15:39:30 UTC
README
Anizoptera CMF component with basic functionality and helper methods for CLI and Daemon applications (forks, libevent, etc..).
https://github.com/Anizoptera/AzaCliBase
Table of Contents
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
Optional requirements
- proctitle extension to change process title;
- aza/libevent and libevent extension to store one main event base for application;
Installation
The recommended way to install AzaCliBase is through composer. You can see package information on Packagist.
{ "require": { "aza/clibase": "~1.0" } }
Credits
AzaCliBase is a part of Anizoptera CMF, written by Amal Samally (amal.samally at gmail.com) and AzaGroup team.
License
Released under the MIT license.
Links
- Composer package
- Last build on the Travis CI
- Project profile on the Ohloh
- Other Anizoptera CMF components on the GitHub / Packagist
- (RU) AzaGroup team blog