Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 18, 2024 via composer

jenssegers/agent v2.6.4

Desktop/mobile user agent parser with support for Laravel, based on Mobiledetect
Package summary
Share
0
issues
1
license
3
MIT
Package created
10 Aug 2013
Version published
13 Jun 2020
Maintainers
1
Total deps
3
Direct deps
2
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
3 Packages, Including:
jaybizzle/crawler-detect@v1.2.118
jenssegers/agent@v2.6.4
mobiledetect/mobiledetectlib@2.8.45
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

2
All Dependencies CSV
β“˜ This is a list of jenssegers/agent 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
jaybizzle/crawler-detectv1.2.118-MIT
prod
mobiledetect/mobiledetectlib2.8.45167.84 kBMIT
prod

Visualizations

Frequently Asked Questions

What does jenssegers/agent do?

The jenssegers/agent PHP package is a user agent parser for desktop and mobile devices. This package is perfectly compatible with Laravel and builds upon the Mobile Detect library. Its main function is to help PHP developers identify the client's device, browser, platform, and language preferences. Additionally, it provides features to detect whether the client is a desktop, a phone, a robot, or even a tablet.

How do you use jenssegers/agent?

To start using the jenssegers/agent PHP package, first, you need to install it using composer. Here is how you can do it:

composer require jenssegers/agent

After installing, you can start using it like this:

use Jenssegers\Agent\Agent;

$agent = new Agent();

You can check for device-specific properties in the user agent like this:

$agent->is('Windows');
$agent->is('Firefox');
$agent->is('iPhone');
$agent->is('OS X');

You have the flexibility to use numerous other methods provided by the Mobile Detect library. Additionally, you can use some handy methods provided by jenssegers/agent like isDesktop() for desktop device detection, isRobot() for robot detection, browser() for retrieving the browser name, etc.

Where are the jenssegers/agent docs?

The comprehensive documentation for the jenssegers/agent PHP package isn't hosted separately. The entire usage guide and method reference can be found on its GitHub repository's README page. Here is the url: https://github.com/jenssegers/agent. You can find extensive details about all the available methods and their usage on this page.