PHP Classes

PHP Get OS Name: Get the current user machine operating system name

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2022-05-06 (1 month ago) RSS 2.0 feedNot yet rated by the usersTotal: 72 This week: 1All time: 9,969 This week: 180Up
Version License PHP version Categories
getos 1.0GNU General Publi...5PHP 5, System information, Unix, Windows, M...
Description Author

This package provides a simple class that gets the current user machine's operating system name.

It checks the PHP_OS constant value and returns the name of the associated operating system.

Currently, it recognizes the name of several well-known operating systems like Windows, Linux, and Darwin (macOS, OSX, iOS, etc.).

If the user machine runs a different operating system, the class returns unknown to specify that the class is not yet ready to recognize the user machine's operating system.

Picture of Ali YILMAZ
Name: Ali YILMAZ <contact>
Classes: 14 packages by
Country: Turkey Turkey
Age: ???
All time rank: 276143 in Turkey Turkey
Week rank: 54 Up1 in Turkey Turkey Up
Innovation award
Innovation award
Nominee: 6x

  Files folder image Files  
File Role Description
Files folder imagesrc (1 file)
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  src  
File Role Description
  Plain text file getOS.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:72
This week:1
All time:9,969
This week:180Up
For more information send a message to info at phpclasses dot org.