Skip to content

Commit 2bd0a4b

Browse files
committed
add a simple process util
1 parent 74f460c commit 2bd0a4b

File tree

2 files changed

+476
-0
lines changed

2 files changed

+476
-0
lines changed

src/Utils/Helper.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ public static function isOnWindows(): bool
2525
return DIRECTORY_SEPARATOR === '\\';
2626
}
2727

28+
/**
29+
* @return bool
30+
*/
31+
public static function isMac(): bool
32+
{
33+
return stripos(PHP_OS, 'Darwin') !== false;
34+
}
35+
2836
/**
2937
* @return bool
3038
*/

0 commit comments

Comments
 (0)