PHP code example of propa / laravel-browscap

1. Go to this page and download the library: Download propa/laravel-browscap 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/ */

    

propa / laravel-browscap example snippets


'providers' => [
    // ...
    Propa\BrowscapPHP\BrowscapServiceProvider::class,
],

'aliases' => [
    // ...
    'Browscap' => Propa\BrowscapPHP\Facades\Browscap::class,
],

 $app->register(\Propa\BrowscapPHP\BrowscapServiceProvider::class);

 class_alias(\Propa\BrowscapPHP\Facades\Browscap::class, Browscap::class);
cli
php artisan vendor:publish
cli
php artisan list browscap
cli
php artisan browscap:update