Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Convenient wrapper for command-line invocation of 'open "http://github.com"' for Windows, OS X and Linux.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 System
Octocat-spinner-32 examples
Octocat-spinner-32 tests
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 composer.json
Octocat-spinner-32 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.