zver/shell-screen

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (1.0.1) of this package.

Linux shell "screen" command php wrapper

1.0.1 2018-01-04 21:50 UTC

This package is auto-updated.

Last update: 2020-01-16 11:15:48 UTC


README

composer require zver/shell-screen
composer install
php test.php

Usage

<?php

//run screen with command
\Zver\ShellScreen::run('screenname','sleep 5');
//or commands
\Zver\ShellScreen::run('screenname',['echo "123"','sleep 5']);
//NOTE When command finished execution screen will be automatically closed

//quit screen
//NOTE command maybe still working, screen - terminated anyway

\Zver\ShellScreen::run('screenname');