2017 © Pedro Peláez
 

cakephp-plugin cakephp-clientinfo

CakePHP plugin providing easy access to information about the client app requesting your site

image

okatsuralau/cakephp-clientinfo

CakePHP plugin providing easy access to information about the client app requesting your site

  • Tuesday, May 16, 2017
  • by okatsuralau
  • Repository
  • 1 Watchers
  • 0 Stars
  • 15 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Software License Build Status Build Status Latest Stable Version , (*1)

CakePHP ClientInfo Plugin

This plugin provides easy access to information about the client app requesting your site. It is just a wrapper and uses the Browser Detector library to collect the data., (*2)

Requirements

  • PHP >= 5.6
  • CakePHP >= 3.0

How to Install

composer require okatsuralau/cakephp-clientinfo@1.0.0

How to Use

Load the plugin in your config/bootstrap.php file:, (*3)

Plugin::load('CakephpClientInfo');

Load the component in your src/Controller/AppController.php, (*4)

public function initialize()
{
    parent::initialize();

    $this->loadComponent('CakephpClientInfo.ClientInfo');
}

To get the info about the client use the, (*5)

public function index()
{
    // returns the browser name (eg.: Chrome)
    $this->ClientInfo->browser();

    // returns the O.S. name (eg.: Linux)
    $this->ClientInfo->os();

    // returns the Device name (eg.: Computer, Mobile, Tablet, iPhone, ...)
    $this->ClientInfo->device();

    // returns the browser's language (eg.: en)
    $this->ClientInfo->language();

    // or you can access the original instance and make calls directly to the browser-detector
    $this->ClientInfo->Browser()->getName();
}

More information about the Browser Detector library., (*6)

License

Copyright 2017 Gabriel Lau, (*7)

Available for you to use under the MIT license. See: http://www.opensource.org/licenses/MIT, (*8)

The Versions

16/05 2017

dev-master

9999999-dev https://github.com/okatsuralau/CakePHP-ClientInfo

CakePHP plugin providing easy access to information about the client app requesting your site

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gabriel Lau

language cakephp browser device os

16/05 2017

v1.0.1

1.0.1.0 https://github.com/okatsuralau/CakePHP-ClientInfo

CakePHP plugin providing easy access to information about the client app requesting your site

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gabriel Lau

language cakephp browser device os

12/05 2017

v1.0.0

1.0.0.0 https://github.com/okatsuralau/CakePHP-ClientInfo

CakePHP plugin providing easy access to information about the client app requesting your site

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gabriel Lau

language cakephp browser device os