secondtruth / sapi
SAPI Library written in PHP
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/secondtruth/sapi
Requires
- php: >=7.4
Requires (Dev)
- phpunit/phpunit: ^9.0
- scrutinizer/ocular: 1.6.*
This package is auto-updated.
Last update: 2025-09-10 23:15:52 UTC
README
A SAPI Library written in PHP.
How to use?
$argv = ['foo', 'bar', '--baz']; $sapi = new CLI($argv); $input = $sapi->getInput(); $input->getArgs(); // ['foo', 'bar', '--baz'] $input->getArgsCount(); // 3 $input->read(); $input->readLine(); $input->readAll(); $output = $sapi->getOutput(); $output->write('My message...');
Installation
Install via Composer
Install Composer if you don't already have it present on your system.
To install the library, run the following command and you will get the latest version:
$ composer require secondtruth/sapi
Requirements
- You must have at least PHP version 7.4 installed on your system.