technodelight / php-cli-cross-platform-open
Opens a file or URL in the user's preferred application in CLI (cross platform)
Installs: 15 155
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
Requires
- technodelight/shell-exec: ^1.0
This package is auto-updated.
Last update: 2024-10-29 05:46:55 UTC
README
Opens a file or URL in the user's preferred application in CLI (cross platform)
usage
<?php
use Technodelight\CliOpen\OsAdaptingFactory;
$cliOpen = OsAdaptingFactory::create();
$cliOpen->open('https://packagist.com');
requirements
You need one of the following terminal applications available:
- open (OS X default)
- xdg-open (default in some linux distros)
- opn / open-cli (https://github.com/sindresorhus/open-cli)