Skip to content

Orbif/Apple-Serial-Number-Decoder

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Apple-Serial-Number-Decoder

PHP Script for Decoding Apple Serial Numbers

Usage: Place the 3 files on your webserver. Visit index.html. Or copy the <form> ... </form> section from the index.html file and insert it into your own webpage. Have fun!

Database: The database.json file is self updating. So when you search a serial number, it first scans the database for the hwc code (last 3#'s if 11 digit or 4#'s if 12 digit serial) to see if the information exists in the database. If it doesn't, then it uses apple's api to look up the hwc and then appends that info to the json database.

Permissions: Remember to chmod the permissions for database.json if required. Otherwise serialphp.info will not have the correct permissions to write to the file.

Versions:

serialinfo.php     - optimized for php8 and includes debug messaging. Should also work for php7.
serialinfo_old.php - if newer version doesn't work, rename this one to serialinfo.php and try. 

TODO: This decoder currently displays a break down of the serial number components (for serials up to 2019), displays model information, manufacture information and links to apple's official hardware configurations. Sites like everymac.com or appleserialinfo.com expand on the information provided by this script greatly with model and emc #'s, configuration options, specs etc. It would be nice if someone forked this and expanded upon the json database file to incorporate these additional fields and supply the community with a free database alternative opposed to subscription based decoding options!

About

PHP Script for Decoding Apple Serial Numbers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 96.1%
  • HTML 3.9%