{"id":21451347,"url":"https://github.com/anizoptera/azaclibase","last_synced_at":"2025-07-29T02:06:25.765Z","repository":{"id":7155445,"uuid":"8454491","full_name":"Anizoptera/AzaCliBase","owner":"Anizoptera","description":"Anizoptera CMF component with basic functionality and helper methods for CLI and Daemon applications (forks, libevent, etc..).","archived":false,"fork":false,"pushed_at":"2013-05-28T13:24:29.000Z","size":144,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-27T05:42:14.300Z","etag":null,"topics":["anizoptera-cmf","cli","composer","daemon-applications","libevent","packagist","pcntl","php","php-library","signal","travis"],"latest_commit_sha":null,"homepage":"https://github.com/Anizoptera/AzaCliBase","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Anizoptera.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-02-27T11:19:38.000Z","updated_at":"2015-07-16T20:04:12.000Z","dependencies_parsed_at":"2022-09-19T11:50:28.083Z","dependency_job_id":null,"html_url":"https://github.com/Anizoptera/AzaCliBase","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Anizoptera/AzaCliBase","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anizoptera%2FAzaCliBase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anizoptera%2FAzaCliBase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anizoptera%2FAzaCliBase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anizoptera%2FAzaCliBase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Anizoptera","download_url":"https://codeload.github.com/Anizoptera/AzaCliBase/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anizoptera%2FAzaCliBase/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267617643,"owners_count":24116208,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["anizoptera-cmf","cli","composer","daemon-applications","libevent","packagist","pcntl","php","php-library","signal","travis"],"created_at":"2024-11-23T04:20:38.387Z","updated_at":"2025-07-29T02:06:25.739Z","avatar_url":"https://github.com/Anizoptera.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"AzaCliBase\n==========\n\nAnizoptera CMF component with basic functionality and helper methods for CLI and Daemon applications (forks, libevent, etc..).\n\nhttps://github.com/Anizoptera/AzaCliBase\n\n[![Build Status][TravisImage]][Travis]\n\n\nTable of Contents\n-----------------\n\n1. [Introduction](#introduction)\n2. [Requirements](#requirements)\n3. [Optional requirements](#optional-requirements)\n4. [Installation](#installation)\n5. [Credits](#credits)\n6. [License](#license)\n7. [Links](#links)\n\n\nIntroduction\n------------\n\nProvides convenient API for commonly needed tasks in CLI or Daemon applications.\n\n**Some features:**\n\n* Detaching process from the controlling terminal;\n* Fork wrapper (with libevent base reinitializing if needed);\n* Signals and exit codes reference;\n* Signals hadling and simple waiting (with pcntl);\n* Get current tty width in columns;\n* Get running command by PID;\n* Kill process tree;\n* Change process title;\n*  ... other;\n\n\nRequirements\n------------\n\n* PHP 5.3.3 (or later);\n* Unix system;\n* [pcntl](http://php.net/pcntl);\n* [posix](http://php.net/posix);\n\n\nOptional requirements\n---------------------\n\n* [proctitle](http://php.net/proctitle) extension to change process title;\n* [aza/libevent](https://packagist.org/packages/aza/libevent) and [libevent](http://php.net/libevent) extension to store one main event base for application;\n\n\nInstallation\n------------\n\nThe recommended way to install AzaCliBase is [through composer](http://getcomposer.org).\nYou can see [package information on Packagist][ComposerPackage].\n\n```JSON\n{\n\t\"require\": {\n\t\t\"aza/clibase\": \"~1.0\"\n\t}\n}\n```\n\n\nCredits\n-------\n\nAzaCliBase is a part of [Anizoptera CMF][], written by [Amal Samally][] (amal.samally at gmail.com) and [AzaGroup][] team.\n\n\nLicense\n-------\n\nReleased under the [MIT](LICENSE.md) license.\n\n\nLinks\n-----\n\n* [Composer package][ComposerPackage]\n* [Last build on the Travis CI][Travis]\n* [Project profile on the Ohloh](https://www.ohloh.net/p/AzaCliBase)\n* Other Anizoptera CMF components on the [GitHub][Anizoptera CMF] / [Packagist](https://packagist.org/packages/aza)\n* (RU) [AzaGroup team blog][AzaGroup]\n\n\n\n[Anizoptera CMF]:  https://github.com/Anizoptera\n[Amal Samally]:    http://azagroup.ru/about/#amal\n[AzaGroup]:        http://azagroup.ru/\n[ComposerPackage]: https://packagist.org/packages/aza/clibase\n[TravisImage]:     https://secure.travis-ci.org/Anizoptera/AzaCliBase.png?branch=master\n[Travis]:          http://travis-ci.org/Anizoptera/AzaCliBase\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanizoptera%2Fazaclibase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanizoptera%2Fazaclibase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanizoptera%2Fazaclibase/lists"}