File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed
Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 66 - 5.4
77 - 5.5
88 - 5.6
9- - hhvm
109
1110install : composer install --no-dev
1211
Original file line number Diff line number Diff line change 11PHP 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
59A 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
5155Command Library is released under Apache 2.0 license. For more information, please consult
5256the [ 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 .
Original file line number Diff line number Diff 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 *
You can’t perform that action at this time.
0 commit comments