Installation
Install Wallet with Composer.
shell
composer require raxos/walletRequirements
- PHP 8.5 or newer.
ext-jsonfor encodingpass.jsonand the manifest.ext-opensslfor signing the manifest against the issuer certificate.ext-zipfor building the.pkpassand.pkpassesarchives.
Raxos dependencies
The package depends on three other Raxos packages, all pulled in automatically by Composer:
- raxos/foundation: temporary files (
FileSystemUtil) for the underlying archive and manifest, and color conversion (ColorUtil) for theColorvalue object. - raxos/http: the
HttpResponsehierarchy thatPKPass::respond()andPKPassBundle::respond()return. - raxos/router: available for wiring pass endpoints into a controller.
All pass components implement Raxos\Contract\Wallet\ComponentInterface, defined in raxos/contract.
Signing certificates
Signing a pass requires a few files from the Apple Developer portal:
- A pass type identifier certificate with its private key and the password that protects it, exported to PEM. These become the
certificate,privateKeyandpasswordof an Identity. - Your team identifier and the pass type identifier the certificate was issued for.
- The Apple Worldwide Developer Relations (WWDR) certificate.
WWDR certificate location
PKPass::sign() loads the WWDR certificate from wwdr.pem at the root of the installed package (resolved as __DIR__ . '/../../wwdr.pem' from src/Apple). Place a valid wwdr.pem there before signing.
Return to the Wallet introduction.