Skip to content
master
Go to file
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Nov 1, 2020
src
Nov 1, 2020

README.md

PHP SAPI Library

Latest Stable Build Status Scrutinizer Coverage License

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.

About

A SAPI Library written in PHP.

Topics

Resources

License

Releases

No releases published

Languages

You can’t perform that action at this time.