2017 © Pedro Peláez
 

library open

Opens a file or URL in PHP

image

florianv/open

Opens a file or URL in PHP

  • Friday, March 23, 2018
  • by florianv
  • Repository
  • 0 Watchers
  • 0 Stars
  • 9 Installations
  • Shell
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Open

Opens a file or URL in PHP, in a cross-platform way. This is a PHP port of node-open., (*1)

Installation

$ composer require florianv/open

Usage

Utility

Use the open() method to open a file or URL using the default or a specific app, (*2)

use Open\Open;

Open::open('picture.jpg');

// It will use the default browser
Open::open('http://google.com');

// It will try to use Chrome
Open::open('http://google.com', 'chrome');

Command

Open Google using your default browser, (*3)

$ php bin/open http://google.com

Open Google using the specified browser (firefox), (*4)

$ php bin/open http://google.com firefox

License

MIT, (*5)

The Versions

23/03 2018

dev-master

9999999-dev https://github.com/florianv/open

Opens a file or URL in PHP

  Sources   Download

MIT

The Requires

 

file url browser open

23/03 2018

1.0.0

1.0.0.0 https://github.com/florianv/open

Opens a file or URL in PHP

  Sources   Download

MIT

The Requires

 

file url browser open