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/psalmto 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\Time\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\IO\Sockets\Servers\Server.
Want to open a local socket ?
$server is an instance of Innmind\IO\Sockets\Servers\Server.
$client is an instance of Innmind\IO\Sockets\Clients\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 Version ~1.3
innmind/server-status Version ~6.1
innmind/server-control Version ~7.2
innmind/filesystem Version ~9.1
innmind/http-transport Version ~9.3
innmind/signals Version ~5.2
innmind/file-watch Version ~6.1
formal/access-layer Version ~5.2
innmind/io Version ~4.2
innmind/immutable Version ~6.0