device2appstore Just copy the PHP function to the file you want to verify the device user-agent. Remember to edit the app store URL before to push in production.