Skip to content
Convenient wrapper for command-line invocation of 'open "http://github.com"' for Windows, OS X and Linux.
PHP
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
System
examples
tests
.gitignore
README.md
composer.json
package.xml

README.md

System_Launcher

System_Launcher is a simple opener of filenames and URLs, based on the operating system's conveniences for that.

It could help other PEAR command-line tools, such as a mythical pear report-bug command, which could open a web page with a form, pre-filled with useful values (by just using the query- string) when the user has entered for which PEAR package to report a bug.

Usage

    <?php
    require_once 'System/Launcher.php';

    $launcher = new System_Launcher;

    // open a file
    $launcher->launch('/data/docs/index.html', true);

    // or a URL
    $launcher->launch('http://pear.php.net', true);
    ?>

These operating system commands are run:

Credits

Originally written by cweiske, and now developed by olleolleolle.

Something went wrong with that request. Please try again.