Skip to content

Commit 4759a15

Browse files
committed
messaging for v 1.9.3
1 parent a446934 commit 4759a15

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ changes when it socially makes sense.
77

88
## [Unreleased]
99

10+
## [1.9.3] - 2019-07-08
11+
### Added
12+
- Added support for curl, wget and the Palemoon browser
13+
1014
## [1.9.2] - 2019-06-26
1115
### Added
1216
- PHPUnit Tests for Firefox, Opera and Chrome (3684 tests, 7368 assertions)

README.md

+23-1
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,12 @@ This solution identifies the following Browsers and does a best-guess on the ver
4444
* Firefox (`Browser::BROWSER_FIREFOX`)
4545
* Mozilla (`Browser::BROWSER_MOZILLA`)
4646
* Palemoon (`Browser::BROWSER_PALEMOON`)
47+
* curl (`Browser::BROWSER_CURL`)
48+
* wget (`Browser::BROWSER_WGET`)
4749
* Amaya (`Browser::BROWSER_AMAYA`)
4850
* Lynx (`Browser::BROWSER_LYNX`)
4951
* Safari (`Browser::BROWSER_SAFARI`)
52+
* Playstation (`Browser::BROWSER_PLAYSTATION`)
5053
* iPhone (`Browser::BROWSER_IPHONE`)
5154
* iPod (`Browser::BROWSER_IPOD`)
5255
* Google.s Android(`Browser::BROWSER_ANDROID`)
@@ -85,5 +88,24 @@ In an active project of mine we have a pretty graphically intensive and visually
8588

8689
Searching for a way to do this at the PHP layer and not at the client layer was more of a challenge than I would have guessed; the only script available was written by Gary White and Gary no longer maintains this script because of reliability. I do agree 100% with Gary about the readability; however, there are realistic reasons to desire the user.s browser and browser version and if your visitor is not echoing a false user agent we can take an educated guess.
8790

88-
I based this solution off of Gary White's original work but have since replaced all of his original code. Either way, thank you to Gary. Sadly, I never was able to get in touch with him regarding this soludion.
91+
I based this solution off of Gary White's original work but have since replaced all of his original code. Either way, thank you to Gary. Sadly, I never was able to get in touch with him regarding this solution.
92+
93+
## Testing
94+
95+
The testing with PHPUnit against known user agents available in tests/lists. Each file is tab delimited with the following fields:
96+
97+
User Agent, User Agent Type, Browser, Version, Operating System, Operating System Version
98+
99+
eg
100+
```
101+
Opera/9.80 (X11; Linux i686; Ubuntu/14.10) Presto/2.12.388 Version/12.16 Browser Opera 12.16 Linux Linux
102+
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.186 Safari/535.1 Browser Chrome 14.0.835.186 Macintosh OS X 10_7_2
103+
```
104+
105+
Tests can be run by phpunit:
106+
107+
```bash
108+
vendor/phpunit/phpunit/phpunit
109+
```
110+
89111

lib/Browser.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* File: Browser.php
55
* Author: Chris Schuld (http://chrisschuld.com/)
66
* Last Modified: June 26nd, 2019
7-
* @version 1.9.2
7+
* @version 1.9.3
88
* @package PegasusPHP
99
*
1010
* Copyright (C) 2008-2019 Chris Schuld ([email protected])

0 commit comments

Comments
 (0)