Skip to content

Commit 4f04a5c

Browse files
committed
Merge branch 'master' into develop
2 parents 5f71e8e + e910e77 commit 4f04a5c

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ php:
66
- 5.4
77
- 5.5
88
- 5.6
9-
- hhvm
109

1110
install: composer install --no-dev
1211

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
PHP OS Detector
22
===============
3-
[![Build Status](https://travis-ci.org/tivie/php-os-detector.svg?branch=develop)](https://travis-ci.org/tivie/php-os-detector) [![Latest Stable Version](https://poser.pugx.org/tivie/php-os-detector/v/stable.svg)](https://packagist.org/packages/tivie/php-os-detector) [![Total Downloads](https://poser.pugx.org/tivie/php-os-detector/downloads.svg)](https://packagist.org/packages/tivie/php-os-detector) [![License](https://poser.pugx.org/tivie/php-os-detector/license.svg)](https://packagist.org/packages/tivie/php-os-detector) [![HHVM Status](http://hhvm.h4cc.de/badge/tivie/php-os-detector.svg)](http://hhvm.h4cc.de/package/tivie/php-os-detector)
3+
4+
[![Build Status](https://travis-ci.org/tivie/php-os-detector.svg?branch=master)](https://travis-ci.org/tivie/php-os-detector)
5+
[![Latest Stable Version](https://poser.pugx.org/tivie/php-os-detector/v/stable.svg)](https://packagist.org/packages/tivie/php-os-detector)
6+
[![Total Downloads](https://poser.pugx.org/tivie/php-os-detector/downloads.svg)](https://packagist.org/packages/tivie/php-os-detector)
7+
[![License](https://poser.pugx.org/tivie/php-os-detector/license.svg)](https://packagist.org/packages/tivie/php-os-detector)
48

59
A small PHP utility library that detects the OS the server is running on.
610

@@ -50,4 +54,4 @@ Source code: https://github.com/tivie/php-os-detector
5054
## License
5155
Command Library is released under Apache 2.0 license. For more information, please consult
5256
the [LICENSE file in this repository](https://github.com/tivie/php-os-detector/blob/master/LICENSE) or
53-
http://www.apache.org/licenses/LICENSE-2.0.txt.
57+
http://www.apache.org/licenses/LICENSE-2.0.txt.

src/Detector.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,15 @@ public function isUnixLike()
6464
return ($this->family === UNIX_FAMILY);
6565
}
6666

67+
/**
68+
* If the Operating System is OSX
69+
* @return bool
70+
*/
71+
public function isOSX()
72+
{
73+
return ($this->getType() === MACOSX);
74+
}
75+
6776
/**
6877
* If the Operating System is Windows Like
6978
*

0 commit comments

Comments
 (0)