Skip to content

Commit bf4d0c9

Browse files
committed
Merge pull request GaretJax#11 from DominikTo/master
added composer support to phpbrowscap
2 parents 8dd776a + 200efc6 commit bf4d0c9

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

README.markdown

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ Browscap is a standalone class for PHP5 that gets around the limitations of
2727
It offers methods to update, cache, adapt and get details about every supplied
2828
user agent on a standalone basis.
2929

30+
Browscap is a [Composer](http://packagist.org/about-composer) package.
31+
3032

3133
Quick start
3234
-----------

composer.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "garetjax/phpbrowscap",
3+
"type": "library",
4+
"description": "Standalone replacement for php's native get_browser() function",
5+
"keywords": ["get_browser", "browser", "capabilities"],
6+
"homepage": "http://github.com/GaretJax/phpbrowscap",
7+
"license": "MIT License",
8+
"authors": [
9+
{
10+
"name": "Jonathan Stoppani",
11+
"email": "[email protected]"
12+
}
13+
],
14+
"require": {
15+
"php": ">=5.3.0"
16+
},
17+
"autoload": {
18+
"psr-0": { "phpbrowscap": "src/" }
19+
}
20+
}

browscap/Browscap.php src/phpbrowscap/Browscap.php

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
namespace phpbrowscap;
4+
35
/**
46
* Browscap.ini parsing class with caching and update capabilities
57
*

0 commit comments

Comments
 (0)