New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

chiiya/laravel-passes

Laravel library for creating iOS and Android Wallet Passes
160,999 37
Install
composer require chiiya/laravel-passes
Latest Version:1.2.0
PHP:^8.2
Laravel:9 – 13
License:MIT
Last Updated:Jun 22, 2026
Links: GitHub  ·  Packagist
Maintainer: chiiya

Laravel Passes

Latest Version on Packagist GitHub Code Style Action Status Total Downloads

Laravel package for creating iOS and Android Wallet Passes.

Installation

You can install the package via composer:

composer require chiiya/laravel-passes

Publish the configuration files with:

php artisan vendor:publish --tag="passes-config"

Usage

This package is a thin wrapper around chiiya/passes, that allows you to directly inject the Google repositories or Apple PassFactory in your application:

public function __construct(
    private OfferClassRepository $offers,
    private PassFactory $apple,
)

public function handle(): void
{
    $this->apple->create(...);
    $this->offers->get(...);
}

You may also use the PassBuilder class, which is an entry point to all pass building functionalities and contains a helper method for creating a signed Google JWT:

use Chiiya\LaravelPasses\PassBuilder;

public function __construct(
    private PassBuilder $builder,
)

public function handle(): void
{
    $this->builder->apple()->create(...);
    $this->builder->google()->offerClasses()->create(...);
    $this->builder->google()->createJWT()->addOfferObject(...)->sign();
}

For documentation on method signatures, check out chiiya/passes.

Testing

Since this package uses the Laravel HTTP Client under the hood to perform API requests, you may simply call Http::fake() to fake responses in your tests. For mocking specific responses, check out the example responses.

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

License

The MIT License (MIT). Please see License File for more information.

Related Packages

nativephp/mobile

NativePHP for Mobile

234,145 1,212
max13/push

Push message manager for PHP. Can even manage SMS.

17 0
tastyigniter/ti-ext-socialite

Allows visitors to register/sign in with their social media accounts.

19,362 4
aporat/store-receipt-validator

PHP receipt validator for Apple App Store, Google Play and Amazon Appstore

4,157,997 657

Version History

Version Released PHP Laravel License
1.2.0 ^8.2 ^9.0|^10.0|^11.0|^12.0|^13.0 MIT
1.1.1 ^8.2 ^9.0|^10.0|^11.0|^12.0 MIT
1.1.0 ^8.1|^8.2 ^9.0|^10.0|^11.0|^12.0 MIT
1.0.2 ^8.1|^8.2 ^9.0|^10.0|^11.0 MIT
1.0.1 ^8.1|^8.2 ^9.0|^10.0|^11.0 MIT