peterkahl / apple-ios-build-version
Associative array of iOS build and version codes.
Installs: 70 653
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=5.3.0
- dev-master
- v59.34
- v59.33
- v59.32
- v59.31
- v59.30
- v59.29
- v59.28
- v59.27
- v59.26
- v59.25
- v59.24
- v59.23
- v59.22
- v59.21
- v59.20
- v59.19
- v59.18
- v59.17
- v59.16
- v59.15
- v59.14
- v59.13
- v59.12
- v59.11
- v59.10
- v59.9
- v59.8
- v59.7
- v59.6
- v59.5
- v59.4
- v59.3
- v59.2
- v59.1
- v59.0
- v58.0
- v57.0
- v56.0
- v55.0
- v54.0
- v53.0
- v52.0
- v51.0
- v50.0
- v49.0
- v48.0
- v47.0
- v46.0
- v45.0
- v44.1
- v44.0
- v43.0
- v42.0
- v42.0b
- v42.0a
- v41.0
- v39.0
- v38.0
- v37.0
- v36.0
- v35.0
- v34.0
- v33.0
- v32.0
- v31.0
- v30.0
- v29.0
- v28.0
- v27.0
- v26.0
- v24.0
- v23.0
- v22.0
- v21.0
- v20.0
- v19.0
- v18.0
- v17.0
- v16.0
- v15.0
- v14.0
- v13.0
- v12.0
- v11.0
- v10.0
- v9.0
- v8.0
- v7.0
- v6.1
- v6.0
- v5.0
- v4.0
- v3.0
- v2.1
- v2.0
- v1.0
- v0.1
This package is auto-updated.
Last update: 2021-01-02 17:58:38 UTC
README
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');