PHP Classes

Laravel Agents Detector: Detect the browser type and store it model objects

Recommend this page to a friend!
  Info   View files Documentation   View files View files (17)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 43 This week: 1All time: 10,782 This week: 560Up
Version License PHP version Categories
laravel-agents-detec 1.0.0MIT/X Consortium ...7.2HTTP, Databases, Libraries, PHP 7
Description 

Author

This class can detect the browser type and store its model objects.

It can parse the current browser user agent string to detect several browser details like the browser name, the operating system of the user machine, languages supported by the browser user, type of browser, browser machine details, etc...

The package can store the details of the detected browser in model objects, so it can load those details in a future request from another user access using the same browser.

Innovation Award
PHP Programming Innovation award nominee
August 2021
Number 7
Being able to detect the Web application user browser details may be important to let applications adapt to those details.

Detecting those details on every HTTP request sent to the application Web server is time-consuming.

This package can cache the detected user browser details using a Laravel model class. This way, it avoids performing the same steps to detect the user browser details on every HTTP request.

Manuel Lemos
Picture of Moamen Eltouny
  Performance   Level  
Name: Moamen Eltouny <contact>
Classes: 36 packages by
Country: Egypt Egypt
Age: 31
All time rank: 259926 in Egypt Egypt
Week rank: 52 Up1 in Egypt Egypt Up
Innovation award
Innovation award
Nominee: 20x

Documentation

<p align="center"><a href="https://pharaonic.io" target="_blank"><img src="https://raw.githubusercontent.com/Pharaonic/logos/main/agents.jpg"></a></p>

<p align="center"> <a href="https://php.net" target="_blank"><img src="https://img.shields.io/static/v1?label=PHP&message=%3E=7.2&color=blue&style=flat-square" alt="PHP Version : >= 7.2"></a> <a href="https://laravel.com" target="_blank"><img src="https://img.shields.io/static/v1?label=Laravel&message=%3E=6.0&color=F05340&style=flat-square" alt="Laravel Version : >= 6.0"></a> <img src="https://img.shields.io/static/v1?label=License&message=MIT&color=brightgreen&style=flat-square" alt="License"> <a href="https://liberapay.com/Pharaonic" target="_blank"><img src="https://img.shields.io/liberapay/receives/Pharaonic?color=gold&label=Support&style=flat-square" alt="Support"></a> <br> <a href="https://packagist.org/packages/Pharaonic/laravel-agents-detector" target="_blank"><img src="https://img.shields.io/static/v1?label=Packagist&message=pharaonic/laravel-agents-detector&color=blue&logo=packagist&logoColor=white" alt="Source"></a> <a href="https://packagist.org/packages/pharaonic/laravel-agents-detector" target="_blank"><img src="https://poser.pugx.org/pharaonic/laravel-agents-detector/v" alt="Packagist Version"></a> <a href="https://packagist.org/packages/pharaonic/laravel-agents-detector" target="_blank"><img src="https://poser.pugx.org/pharaonic/laravel-agents-detector/downloads" alt="Packagist Downloads"></a> </p>

<h3 align="center">Laravel Agents Detector provides an easy way to detect</h3> <h4 align="center">Devices, Operation Systems and Browsers.</h4> <br>

Documentation

You can find the detailed documentation here in Laravel Agents Detector Documentation.

Contributing

Thank you for considering contributing to this package! Be one of Pharaonic team.

Pharaonic Sponsors

We would like to extend our thanks to the following sponsors for funding Pharaonic packages development. If you are interested in becoming a sponsor, please visit the Pharaonic Liberapay page or Patreon page.

License

This package is an open-sourced software licensed under the MIT license.


  Files folder image Files  
File Role Description
Files folder image.github (1 file)
Files folder imagesrc (1 file, 5 directories)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  .github  
File Role Description
  Accessible without login Plain text file FUNDING.yml Data Auxiliary data

  Files folder image Files  /  src  
File Role Description
Files folder imageClasses (1 file)
Files folder imagedatabase (1 directory)
Files folder imageHelpers (1 file)
Files folder imageMiddleware (1 file)
Files folder imageModels (5 files)
  Plain text file AgentsServiceProvider.php Class Class source

  Files folder image Files  /  src  /  Classes  
File Role Description
  Plain text file AgentDetector.php Class Class source

  Files folder image Files  /  src  /  database  
File Role Description
Files folder imagemigrations (5 files)

  Files folder image Files  /  src  /  database  /  migrations  
File Role Description
  Plain text file 2021_02_01_000019_...e_devices_table.php Class Class source
  Plain text file 2021_02_01_000020_...n_systems_table.php Class Class source
  Plain text file 2021_02_01_000021_..._browsers_table.php Class Class source
  Plain text file 2021_02_01_000022_create_bots_table.php Class Class source
  Plain text file 2021_02_01_000023_...te_agents_table.php Class Class source

  Files folder image Files  /  src  /  Helpers  
File Role Description
  Accessible without login Plain text file Agent.php Example Example script

  Files folder image Files  /  src  /  Middleware  
File Role Description
  Plain text file AgentDetector.php Class Class source

  Files folder image Files  /  src  /  Models  
File Role Description
  Plain text file Agent.php Class Class source
  Plain text file Bot.php Class Class source
  Plain text file Browser.php Class Class source
  Plain text file Device.php Class Class source
  Plain text file OperationSystem.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:43
This week:1
All time:10,782
This week:560Up