Author Name Chris Fidao Social Media Image by https://annieruygtillustration.com/ $result = Process::run("php -v"); echo $result->output(); This uses https://symfony.com/doc/current/components/process.html under the hood, and adds a TON of quality-of-life improvements.

Let's run the ls -lah command to list out files in the current directory: $result = Process::run('ls -lah')

# Find the status of each app # The pipe `|` only get stdout content fly apps list -j | jq '.

// Get our list of apps as JSON and parse it in PHP $result = Process::run("fly apps list -j"); if ($result->successful()) { $apps = json_decode($result->output(), true); var_dump($apps); }
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners