BSD Ports

devel/pear-System_Command 1.0.8 DragonFly

PEAR command line execution interface

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
Categories
devel, pear
Package size
6.9 KiB, 23.5 KiB installed

Description

System_Command is a command line execution interface.

Running functions from the command line can be risky if the proper precautions are not taken to escape the shell arguments and reaping the exit status properly. This class provides a formal interface to both, so that you can run a system command as comfortably as you would run a php function, with full pear error handling as results on failure. It is important to note that this class, unlike other implementations, distinguishes between output to stderr and output to stdout. It also reports the exit status of the command. So in every sense of the word, it gives php shell capabilities.

In the other systems

SystemPortVersion
DragonFlydevel/pear-System_Command1.0.8
FreeBSDdevel/pear-System_Command1.0.8

Install

Binary package:

pkg install php81-pear-System_Command

From DPorts:

cd /usr/dports/devel/pear-System_Command && make install clean

Dependencies

Run dependencies 2

No port depends on this one.

Configuration

No options to configure.

Service scripts
none
Flavors
php82-pear-System_Command-1.0.8, php83-pear-System_Command-1.0.8, php84-pear-System_Command-1.0.8