Download the PHP package acsiomatic/device-detector-bundle without Composer

On this page you can find all versions of the php package acsiomatic/device-detector-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package device-detector-bundle

AcsiomaticDeviceDetectorBundle

The AcsiomaticDeviceDetectorBundle provides integration of the DeviceDetector library into the Symfony framework.

DeviceDetector is a Universal Device Detection library that parses User Agents and Browser Client Hints to detect devices (desktop, tablet, mobile, tv, cars, console, etc.), clients (browsers, feed readers, media players, PIMs, ...), operating systems, brands and models.

From https://github.com/matomo-org/device-detector

This bundle provides the DeviceDetector class as service, and Twig global variable.

Installation

You can install the bundle using Composer:

Configuration

You can configure the bundle using the acsiomatic_device_detector configuration section:

Usage

Usage in controllers

You can inject DeviceDetector as a service. This bundle sets up an instance of this class according to the configurations under the acsiomatic_device_detector section in order to provide information about the main request.

[!NOTE] You need to call $device->parse() before asking for device's information if auto_parse configuration is false.

Usage in Twig

The DeviceDetector service is assigned to the Twig templates as device variable.

Usage in route condition

The DeviceDetector is tagged as routing condition service.

Parsing custom request

You might want to parse other request than the current one. This bundle provides a service that implements DeviceDetectorFactoryInterface. This service provides methods that create fresh DeviceDetector instances according to the configurations under the acsiomatic_device_detector section, but it doesn't attach them to any request.

Custom parsers

You can inject custom parsers into DeviceDetector by providing them as services.

If autoconfigure is enabled, the bundle injects custom parsers. Otherwise, you need to add the corresponding tag to each custom parsers:

Release Policy

There is a single maintained branch per time. This branch targets a minor version.

A maintained version reaches its end-of-life when a new minor version is released.

Dependencies Compatibility Policy

This library is compatible with maintained versions of PHP, Device Detector, and Symfony.


All versions of device-detector-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
friendsofphp/proxy-manager-lts Version ^1.0
matomo/device-detector Version ^6.2
symfony/framework-bundle Version ^5.4 || ^6.4 || ^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package acsiomatic/device-detector-bundle contains the following files

Loading the files please wait ....