All Projects → SimonWaldherr → Passkit.php

SimonWaldherr / Passkit.php

a php function to create passes for Apple Passbook

passkit.php

a php function to create passes for Apple Passbook

No Maintenance Intended Flattr donate button PayPal donate button

if you tested/used the code recently, please feel free to add your configuration to the Tested with paragraph below

Info material

Requirements

  • Clientside
    • iOS > 6.0.0
    • Mac OS X > 10.8.0
  • Serverside
    • PHP 5 >= 5.2.2
    • Access to filesystem
  • Other

Tested with

  • Clienthardware
    • iPhone 4
    • iPhone 4s
    • iPhone 5s
    • iPod Touch (4.Gen.)
    • iMac
    • MBP
  • Clientsoftware
    • iOS 6.x
    • iOS 7.0
    • iOS 7.0.3
    • iOS 7.1
    • Mac OS X 10.8
    • Mac OS X 10.9
  • Serversoftware
    • Linux (RHEL 5)
    • Linux (Debian 7)
    • Solaris (11.1)
    • Apache 2
    • PHP 5.3.13
    • PHP 5.4.4
    • PHP 5.5.5

License

The MIT License
Copyright © 2014 Simon Waldherr

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Version

passkit.php v1.0

Howto

In order to get it working on your server, you have to:

  • replace the dummy Certificate.p12 with your own cert
  • change the teamIdentifier in /data/XYZ.json to your own
  • change the passTypeIdentifier in /data/XYZ.json to your own
  • select a temp directory in index.php
  • upload to your server
  • change permissions of your temp dir chmod

more details coming soon ...

Questions

feel free to ask via:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].