Download the PHP package innmind/server-control without Composer
On this page you can find all versions of the php package innmind/server-control. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download innmind/server-control
More information about innmind/server-control
Files in innmind/server-control
Package server-control
Short Description Allows to control the server from php
License MIT
Homepage http://github.com/Innmind/ServerControl
Informations about the package server-control
ServerControl
Give access to giving instructions to the server.
[!IMPORTANT] To correctly use this library you must validate your code with
vimeo/psalm
Installation
Usage
Scripts
Sometimes you may want to run a set of commands on your server. You can easily do so like this:
If any command fails, it will stop the script and raise an exception.
Remote server control
This will run ssh -p 42 [email protected] ls
.
[!IMPORTANT] Specifying environment variables or an input stream will not be taken into account on the remote server.
Logging
Mocking
In order to simplify testing code this library exposes a Mock
server that can be configured like this:
[!IMPORTANT] The order in which you call the
will*
methods is the order in which the code you test needs to make these actions.
All versions of server-control with dependencies
innmind/immutable Version ~5.12
innmind/url Version ~4.0
psr/log Version ~3.0
innmind/time-continuum Version ^4.1.1
innmind/filesystem Version ~8.0
innmind/time-warp Version ~4.0
innmind/io Version ~3.1