Download the PHP package laulamanapps/apple-passbook without Composer
On this page you can find all versions of the php package laulamanapps/apple-passbook. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download laulamanapps/apple-passbook
More information about laulamanapps/apple-passbook
Files in laulamanapps/apple-passbook
Package apple-passbook
Short Description Generate Apple Wallet (previously Passbook) compatible tickets from PHP
License MIT
Informations about the package apple-passbook
Apple Passbook
This package provides a simple OOP integration of the Apple Wallet passes (PassKit) API for your PHP project.
Installation
With composer, add:
Or use one of the framework integrations, which also implement the Apple PassKit web service endpoints for pass updates:
If you're using Symfony, install laulamanapps/apple-passbook-bundle:
If you're using Laravel, install laulamanapps/apple-passbook-laravel:
Run Tests
We use act to run tests which runs github actions locally:
Get certificate
Head over to the Apple Developer Portal to get yourself a certificate to sign your passbooks with.
Convert the certificate and key to a .p12 file using the Keychain Access
Setup Compiler
AppleWWDRCA certificate.
Included are 4 AppleWWDRCA intermediate certificates:
- AppleWWDRCAG3.pem - Expires Feb 20 2030 (fallback default)
- AppleWWDRCAG4.pem - Expires Dec 10 2030
- AppleWWDRCAG5.pem - Expires Dec 10 2030
- AppleWWDRCAG6.pem - Expires Mar 19 2036
The Signer automatically selects the bundled intermediate that matches the issuer of your
pass type identifier certificate (G3–G6), so in most cases no configuration is needed.
To override the selection, set a file path as the 3rd option of the CompilerFactory
or call setAppleWWDRCA() on the Signer class.
Create Passbook
Compile Passbook
Push Notifications (updating passes)
When a pass is registered on a device via the web service, Apple provides a push token.
You can use the Notifier to send a push notification that tells the device to fetch an updated version of the pass.
For sandbox/development environments:
Note: The
ext-curlextension with HTTP/2 support is required.
Examples
For the examples to work place the certificate P12 file in the /certificates folder and fill out the required information in the example scripts:
<CertificatePassword>, <TeamId>, <PassTypeId>
Example php scripts can be found in docs/example:
- BoardingPass
- BoardingPass Advanced — semantic tags, action URLs, QR barcode, beacons
- Coupon
- Event
- Event Advanced — semantic tags, action URLs, NFC, expiration, sharing
- Generic
- Generic NFC — employee badge with NFC door access, beacons, Wi-Fi, data detectors
- StoreCard
- StoreCard NFC — NFC-enabled loyalty card with contactless authentication
- Push Notification — sending pass updates via APNs
Credits
This package has been developed by LauLaman.
All versions of apple-passbook with dependencies
ext-json Version *
ext-curl Version *
ext-openssl Version *
ext-zip Version *
ext-exif Version *
ramsey/uuid Version ^3 || ^4


