gipfl/cli

CLI utilities

Maintainers

👁 gipfl

Package info

github.com/gipfl/cli

pkg:composer/gipfl/cli

Statistics

Installs: 8 008

Dependents: 2

Suggesters: 0

Stars: 0

Open Issues: 0

v0.7.0 2024-03-27 11:12 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT ea81eece60ee9625177d77f1a9d64d9d33fc22f5

  • Thomas Gelf <thomas.woop@gelf.net>

This package is auto-updated.

Last update: 2026-06-27 16:01:17 UTC


README

CLI-related library. Currently provides Process- and Screen-related helper classes.

Usage

Just some usage examples. Please check our source code, as all useful public methods should carry a nice documentation.

Change the your process title

This is what you'll see in your process list:

use gipfl\Cli\Process;

Process::setTitle('mydaemon: doing something');

Restart the process, replacing itself

The new process will run in the same process space, after being started with the very same binary, given the same parameters and the the same environment:

Process::restart();

Do more with your CLI screen

use gipfl\Cli\Screen;

$screen = Screen::instance();
echo $screen->center($screen->underline('Hello world'));

Use some color

echo Screen::instance()->colorize('OK', 'green') . ": everything is fine!\n"'

Changes

v0.7.0

  • dependencies: support react/promise v2 and v3

v0.3.0

  • Process: fix restart when started from a shell
  • Introduce Spinner

v0.2.0

  • Process::restart() and related helper methods
  • Screen helpers

v0.1.0

  • First release