PHP Classes

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

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 90 All time: 9,948 This week: 61Up
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
  Performance   Level  
Name: Ali YILMAZ <contact>
Classes: 16 packages by
Country: Turkey Turkey
Age: ???
All time rank: 249042 in Turkey Turkey
Week rank: 199 Up9 in Turkey Turkey Up
Innovation award
Innovation award
Nominee: 8x

  Files folder image Files (3)  
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 (3)  /  src  
File Role Description
  Plain text file getOS.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:90
This week:0
All time:9,948
This week:61Up