PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Peter Kahl   Apple iOS build   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Apple iOS build
Get the version of a iOS build and version codes
Author: By
Last change: Update of README.md
Date: 4 years ago
Size: 1,647 bytes
 

Contents

Class file image Download

Apple iOS Build

Downloads Download per Month License If this project has business value for you then don't hesitate to support me with a small donation.

Associative array of iOS build and version codes.

Usage

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');