Download the PHP package siarko/cli-bootstrap without Composer
On this page you can find all versions of the php package siarko/cli-bootstrap. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download siarko/cli-bootstrap
More information about siarko/cli-bootstrap
Files in siarko/cli-bootstrap
Download siarko/cli-bootstrap
More information about siarko/cli-bootstrap
Files in siarko/cli-bootstrap
Vendor siarko
Package cli-bootstrap
Short Description PHP Cli bootstrap library. Implements error handling, main cli loop
License
Package cli-bootstrap
Short Description PHP Cli bootstrap library. Implements error handling, main cli loop
License
Please rate this library. Is it a good library?
Informations about the package cli-bootstrap
What is this
This is a simple library that implements methods usefull in creating console applications.
Features
- Maintaining constant TPS (Ticks Per Second)
- Running code in loop, multiple tasks can be defined
- Events emmited on:
- Initialization complete
- OS Signals received
- Cleanup started (Exiting, but before error logs are collected)
- Exit (Last moment to execute any code)
Example
Extending / Development
This repo ships with docker compose configuration to ease development.
Build container: .docker/build.sh
Start container: .docker/run.sh
Dockerfile already has a XDEBUG_TRIGGER=1 flag, so all executions should work with xdebug OOTB.
As a basic example, there's a cli.php script that I used for testing in dev directory.
AI
No AI was used for creation of this code.
All versions of cli-bootstrap with dependencies
PHP Build Version
Package Version
The package siarko/cli-bootstrap contains the following files
Loading the files please wait ...