PHP code example of laizware / quickshell

1. Go to this page and download the library: Download laizware/quickshell library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

laizware / quickshell example snippets




use function LaizWare\Quickshell\run;

$command   = "ls";
$arguments = ["-l"];
$wd        = "/tmp/";
$env       = [
    "MY_ENVIRONMENT_X" => "X",
    "MY_ENVIRONMENT_Y" => "Y",
    "MY_ENVIRONMENT_Z" => "Z",
];

$stdout = run(
    // Required
    $command,

    // Optional
    $arguments,
    $env,
    $wd,
);