Anizoptera / AzaCliBase

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

Home Page:https://github.com/Anizoptera/AzaCliBase

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AzaCliBase

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

https://github.com/Anizoptera/AzaCliBase

Build Status

Table of Contents

  1. Introduction
  2. Requirements
  3. Optional requirements
  4. Installation
  5. Credits
  6. License
  7. Links

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

  • PHP 5.3.3 (or later);
  • Unix system;
  • pcntl;
  • posix;

Optional requirements

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

About

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

https://github.com/Anizoptera/AzaCliBase

License:Other


Languages

Language:PHP 100.0%