| Recommend this page to a friend! | 
|  Download | 
| Info | Documentation |  Files |  Install with Composer |  Download | Reputation | Support forum | Blog | Links | 
| Ratings | Unique User Downloads | Download Rankings | ||||
|    50% | Total: 127 | All time:  9,417 This week: 73  | ||||
| Version | License | PHP version | Categories | |||
| apple-ios-build 1.0.89 | Custom (specified... | 5 | PHP 5, Mac OS, Parsers | 
| Description | Author | |
| This class can get the version of a iOS build and version codes. Innovation Award | 
Associative array of iOS build and version codes.
use peterkahl\iOSbuild\iOSbuild;
# Takes iOS build code and returns corresponding iOS version.
echo '14F5080a ............ '. iOSbuild::getVersion('14F5080a') ."\n";
# Let's try build code that's not in our array:
echo '14E287   ............ '. iOSbuild::getVersion('14E287') ."\n";
/*
14F5080a ............ 10.3.2b3
14E287   ............ 10.3
*/
# Are build/version data outdated? Older than 30 days:
if (iOSbuild::GetDataTimestamp() < time() - 30*86400) {
  echo 'OUTDATED';
  # Send email to admin to do something?
}
# Returns associative array of iOS versions.
$array = iOSbuild::getArray();
# Returns a randomly chosen iOS Calendar User Agent string.
echo iOSbuild::getCalendarUA(); # iOS/10.0.1 (14A403) dataaccessd/1.0
# Optionally, you can specify a minimum version of iOS (to get random User Agent string).
# Argument must be a string in format 'MAJOR.MINOR' (1 dot only.)
echo iOSbuild::getCalendarUA('6.0');
|  Files (6) | 
| File | Role | Description | ||
|---|---|---|---|---|
|  src (2 files) | ||||
|    .travis.yml | Data | Auxiliary data | ||
|    composer.json | Data | Auxiliary data | ||
|    LICENSE | Lic. | License text | ||
|    README.md | Doc. | Documentation | ||
|  Files (6) | / | src | 
| File | Role | Description | 
|---|---|---|
|    data.php | Aux. | Auxiliary script | 
|  iOSbuild.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 | 
| Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
| 100% | 
 | 
 | 
| User Ratings | ||||||||||||||||||||||||||||||
| 
 | ||||||||||||||||||||||||||||||
| Applications that use this package | 
 If you know an application of this package, send a message to the author to add a link here.
 If you know an application of this package, send a message to the author to add a link here.