Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Mobile Pass Laravel Package

spatie/laravel-mobile-pass

Laravel package to generate Apple Wallet mobile passes (boarding passes, tickets, coupons, cards) with support for pushing updates to issued passes so they stay current on users’ devices. In development—don’t use in production yet.

View on GitHub
Deep Wiki
Context7

title: Reading stored passes weight: 3

The package contains a PkPassReader class that can be used to read Apple passes from a file or a string.

Here's how you can instantiate the PkPassReader class:

use Spatie\LaravelMobilePass\Support\Apple\PkPassReader;

// from file
$reader = PkPassReader::fromFile('path/to/pass.pkpass');

// from string
$reader = PkPassReader::fromString($passData);

The PkPassReader class has the following methods:

  • containingFiles(): Returns an array of files contained in the pass.
  • containsFile(string $filename): Returns a boolean indicating whether the pass contains a file with the given filename.
  • manifestProperties(): Returns an array of properties from the pass manifest.
  • manifestProperty(string $key): Returns the value of the given property from the pass manifest.
  • passProperties(): Returns an array of properties from the pass.json file.
  • passProperty(string $key): Returns the value of the given property from the pass.json file.
  • toArray(): Returns an array representation of the pass.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport