Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthieu Aubry committed Apr 7, 2014
1 parent bba9e35 commit 9fb9d3e
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,28 @@ DeviceDetector

The Universal Device Detection library, that parses User Agents and detects devices (desktop, tablet, mobile, tv, cars, console, etc.), and detects browsers, operating systems, devices, brands and models.

## Usage

```
$dd = new DeviceDetector($userAgent);
$dd->parse();
$browserInfo = $dd->getBrowser();
$osInfo = $dd->getOs();
$device = $dd->getDevice();
$brand= $dd->getBrand();
$model= $dd->getModel();
```

## Tests

Build status (master branch) [![Build Status](https://travis-ci.org/piwik/device-detector.png?branch=master)](https://travis-ci.org/piwik/device-detector)

See also: [QA at Piwik](http://piwik.org/qa/)

## Credits

[Piwik team](http://piwik.org/team/)

## Contribute

We are looking forward to your contributions and pull requests. Together we can build the best Device Detection library!

0 comments on commit 9fb9d3e

Please sign in to comment.