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 Passbooks from PHP
License MIT
Informations about the package apple-passbook
Apple Passbook
This package provides a simple OOP integration of the Apple Passbook API for your PHP project.
Installation
With composer, add:
Or if your using Symfony install laulamanapps/apple-passbook-bundle:
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
AppleWWDRA certificate.
Included ar 2 AppleWWDRCA certificates:
- AppleWWDRCA.pem - Expires feb 3 2023
- AppleWWDRCAG3.pem - Expires feb 20 2030
By default AppleWWDRCA is used if you want to use the otherone you can do so by setting its file path as the 3rd option in the CompilerFactory
or calling setAppleWWDRCA()
on the Signer
class for custom implementation
Create Passbook
Compile Passbook
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
- Coupon
- Event
- Generic
- StoreCard
Credits
This package has been developed by LauLaman.
All versions of apple-passbook with dependencies
ext-json Version *
ext-openssl Version *
ext-zip Version *
ext-exif Version *
ramsey/uuid Version ^3 || ^4
werkspot/enum Version ^2.1 || ^3.0