Skip to content

olleolleolle/System_Launcher

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%