PHPackages                             laulamanapps/wallet-laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. laulamanapps/wallet-laravel

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

laulamanapps/wallet-laravel
===========================

Platform-agnostic wallet pass generation for your Laravel application

v1.0.0(1mo ago)027MITPHPPHP ^8.1CI passing

Since Jul 8Pushed 1mo agoCompare

[ Source](https://github.com/LauLamanApps/wallet-laravel)[ Packagist](https://packagist.org/packages/laulamanapps/wallet-laravel)[ RSS](/packages/laulamanapps-wallet-laravel/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (7)Versions (2)Used By (0)

Wallet Laravel
==============

[](#wallet-laravel)

This package provides Laravel integration for the [LauLamanApps Wallet SDK](https://github.com/LauLamanApps/wallet): platform-agnostic wallet pass generation for your Laravel application. Describe a pass once and generate it for Apple Wallet (`.pkpass` files), Google Wallet ("Save to Google Wallet" links) or any custom platform.

Requirements
------------

[](#requirements)

- PHP 8.1+
- Laravel 11.x, 12.x or 13.x

Installation
------------

[](#installation)

```
composer require laulamanapps/wallet-laravel
```

The service provider (`LauLamanApps\WalletLaravel\WalletServiceProvider`) is registered automatically via Laravel package auto-discovery. It registers `LauLamanApps\Wallet\Wallet` as a singleton (also available under the `wallet` container alias).

To generate passes for a specific platform, install the matching bridge packages:

```
# Apple Wallet: binds the Compiler the Apple bridge needs
composer require laulamanapps/apple-passbook laulamanapps/apple-passbook-laravel

# Google Wallet: binds the SaveUrlFactory the Google bridge needs
composer require laulamanapps/google-wallet laulamanapps/google-wallet-laravel
```

Run Tests
---------

[](#run-tests)

```
composer install
./bin/phpunit
```

Configuration
-------------

[](#configuration)

Publish the config file:

```
php artisan vendor:publish --tag=wallet-config
```

This creates `config/wallet.php`:

KeyDefaultDescription`apple.enabled``env('WALLET_APPLE_ENABLED', false)`Register the Apple bridge (`.pkpass` files)`google.enabled``env('WALLET_GOOGLE_ENABLED', false)`Register the Google bridge ("Save to Google Wallet" links)`google.issuer_id``env('GOOGLE_WALLET_ISSUER_ID')`Your Google Wallet issuer id (required when Google is enabled)`google.class_suffix``null`Optional class suffix; `null` derives it from the pass typeExample `.env`:

```
WALLET_APPLE_ENABLED=true
WALLET_GOOGLE_ENABLED=true
GOOGLE_WALLET_ISSUER_ID=3388000000012345678
```

Usage
-----

[](#usage)

Build a platform-agnostic `Pass` and let the `Wallet` generate the platform-specific result:

```
