Download the PHP package innmind/operating-system without Composer
On this page you can find all versions of the php package innmind/operating-system. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download innmind/operating-system
More information about innmind/operating-system
Files in innmind/operating-system
Package operating-system
Short Description Abstraction for the whole system the script is operating in
License MIT
Homepage http://github.com/Innmind/OperatingSystem
Informations about the package operating-system
OperatingSystem
Abstraction for most of the operating system the PHP code run on.
The goal is to deal with the operating system in a more abstract way (instead of dealing with concrete, low level, details).
[!IMPORTANT] you must use
vimeo/psalm
to make sure you use this library correctly.
Installation
Documentation
Documentation is located in the documentation/
folder.
Usage
Want to access the system clock ?
$os->clock()
will return an instance of Innmind\TimeContinuum\Clock
.
Want to access the filesystem ?
$adater
is an instance of Innmind\Filesystem\Adapter
.
Want to list processes running on the system ?
$os->status()->processes()->all()
will return a map of Inmmind\Immutable\Set<Innmind\Server\Status\Server\Process>
.
Want to run a command on the system ?
$process
is an instance of Innmind\Server\Control\Server\Process
.
Want to open a port to the outside world ?
$server
is an instance of Innmind\Socket\Server
.
Want to open a local socket ?
$server
is an instance of Innmind\Socket\Server
.
$client
is an instance of Innmind\Socket\Client
.
Want to execute commands on a remote server ?
$process
is an instance of Innmind\Server\Control\Server\Process
.
Want to do a http call ?
Want to access current process id ?
Want to pause the current process ?
Want to listen for a signal ?
All versions of operating-system with dependencies
innmind/time-continuum Version ~3.0
innmind/server-status Version ~4.0
innmind/server-control Version ~5.0
innmind/filesystem Version ~7.1
innmind/socket Version ~6.0
innmind/http-transport Version ~7.2
innmind/time-warp Version ~3.0
innmind/signals Version ~3.0
innmind/file-watch Version ~4.0
innmind/stream Version ~4.0
formal/access-layer Version ~4.0
innmind/io Version ~2.7