PHP code example of tibian / browser-requirement

1. Go to this page and download the library: Download tibian/browser-requirement 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/ */

    

tibian / browser-requirement example snippets


TiBian\BrowserRequirement\BrowserRequirementServiceProvider::class,

Os::OSX => [
    Browser::CHROME => 25,
    Browser::FIREFOX => 25,
    Browser::OPERA => 29,
],
// Windows
Os::WINDOWS => [
    Browser::CHROME => 25,
    Browser::FIREFOX => 25,
    Browser::OPERA => 29,
    Browser::SAFARI => 8,
    Browser::IE => 9,
    Browser::EDGE => 11,
],

Route::get("'

Route::get("/", "PagesController@index")
    ->name('home');

php artisan vendor:publish

or

php artisan vendor:publish --provider="TiBian\BrowserRequirement\BrowserRequirementServiceProvider" --tag=config