PHP code example of florianv / open
1. Go to this page and download the library: Download florianv/open library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
florianv / open example snippets
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');
$ php bin/open http://google.com
$ php bin/open http://google.com firefox