Download the PHP package dungeonworx/laravel-devicedetector without Composer

On this page you can find all versions of the php package dungeonworx/laravel-devicedetector. 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 laravel-devicedetector

Laravel DeviceDetector Bridge

Latest Stable Version Latest Unstable Version Total Downloads License Build Status

This package was created out of a need to integrate Piwik's DeviceDetector package into my Laravel application in a specific way. After working on the code in my project, I realized this package would be best suited to be a package and committed publicly for consumption.

The goal of this project is to provide easier access to the DeviceDetector library and also wrap it in an easy to use Laravel Facade to facilitate seamless access in other areas of the code. This library also provides a middleware which provides some additional information in your request payload to modify parts of your application based on the device that is currently connected.

Usage

Facade

If you include the middleware in your requests, you only need to use the Facade's methods, which are documented.

If you do not use the middleware in your request, or you wish to check a different user agent, you will need to pass the optional user_agent parameter to the specific method. Please note, this changes the parsed results for all future requests as well. So if you wish to go back to returning value for the current browser request, you will need to call DeviceDetector::get($request->userAgent()) once more to reset back to the current browsing session.

Middleware

To use this package in your middleware, just add the device_detector middleware alias to your web middleware in the Http/Kernel.php file in your project. Once that's installed, you can access the four included detectors in your request. The is key in the request contains an array with four booleans; bot, desktop, mobile, and touch. These booleans are available for every request and also cached to your already assigned cache repository.

Documentation

This package is documented using phpDocumentor and it's API documentation can be located here.


All versions of laravel-devicedetector with dependencies

PHP Build Version
Package Version
Requires piwik/device-detector Version ^3.11
illuminate/support Version ^5.7
illuminate/contracts Version ^5.7
illuminate/http Version ^5.7
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 dungeonworx/laravel-devicedetector contains the following files

Loading the files please wait ....