https://github.com/insign/get-os
Simply create a consistently way to find out what operating system is the php running.
https://github.com/insign/get-os
Last synced: 6 months ago
JSON representation
Simply create a consistently way to find out what operating system is the php running.
- Host: GitHub
- URL: https://github.com/insign/get-os
- Owner: insign
- Created: 2017-01-10T18:56:04.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-11-13T19:15:36.000Z (over 5 years ago)
- Last Synced: 2025-09-26T03:54:35.813Z (10 months ago)
- Language: PHP
- Size: 5.86 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
get-os
================
Only creates a simple and consistent way to find out what operating system is the current is php running.
* Supports Linux, Mac and Windows
```php
// Unknown = 1
// Windows = 2
// Linux = 3
// Mac = 4
echo getOS::ofServer(); // Return a integer
```