Download the PHP package kfosoft/php-accept-ratio-standard-enum without Composer
On this page you can find all versions of the php package kfosoft/php-accept-ratio-standard-enum. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download kfosoft/php-accept-ratio-standard-enum
More information about kfosoft/php-accept-ratio-standard-enum
Files in kfosoft/php-accept-ratio-standard-enum
Download kfosoft/php-accept-ratio-standard-enum
More information about kfosoft/php-accept-ratio-standard-enum
Files in kfosoft/php-accept-ratio-standard-enum
Vendor kfosoft
Package php-accept-ratio-standard-enum
Short Description PHP Standard Accept Ratio Enum
License
Package php-accept-ratio-standard-enum
Short Description PHP Standard Accept Ratio Enum
License
Please rate this library. Is it a good library?
Informations about the package php-accept-ratio-standard-enum
Standard of accept ratio enum for PHP
Installation
Installation with Composer
Either run
php composer.phar require kfosoft/php-accept-ratio-standard-enum:"*"
or add in composer.json
"require": {
...
"kfosoft/php-accept-ratio-standard-enum":"*"
}
Well done!
API
getResolutions - Get standard resolutions.
getAcceptRatio - Get standard accept ratio.
getAcceptRatioByResolution - Get accept ratio of resolution.
getResolutionByAcceptRatio - Get resolutions of accept ratio.
Example 1
use KFOSOFT\Domain\Display\Enumeration\StandardAcceptRatio;
var_dump(StandardAcceptRatio::getAcceptRatioByResolution('1366x768'));
Result
string(4) "16:9"
Enjoy, guys!
All versions of php-accept-ratio-standard-enum with dependencies
PHP Build Version
Package Version
The package kfosoft/php-accept-ratio-standard-enum contains the following files
Loading the files please wait ....