elan-ev/digicard-wallet-library
Composer 安装命令:
composer require elan-ev/digicard-wallet-library
包简介
Connector to Google and Apple Wallet for Digital Campuscard
README 文档
README
A PHP library for integrating digital campuscards with Google Wallet and Apple Wallet.
Description
The Digicard Wallet Library provides a simple and unified interface for creating and managing digital campuscards in both Google Wallet and Apple Wallet. This library handles the complexity of working with both wallet platforms, allowing educational institutions to easily provide their students and employees with digital campuscards.
Features
- Google Wallet Integration: Create, update, and expire digital campuscards in Google Wallet
- Apple Wallet Integration: Generate PKPass files for Apple Wallet
- Unified User Model: Simple
WalletUserclass to represent user information - Customizable: Support for multiple study courses, semester information, and institution branding
Installation
Install via Composer:
composer require elan-ev/digicard-wallet-library
Usage
Google Wallet
use DigicardWalletLibrary\GoogleCard; use DigicardWalletLibrary\WalletUser; // Initialize Google Wallet integration $googleCard = new GoogleCard( $classSuffix, $issuerId, $serviceAccountConfig, $validationUrl ); // Create a wallet user $user = new WalletUser(/* user data */); // Generate wallet link $walletLink = $googleCard->getWalletLink($user); // Update existing wallet $googleCard->updateWallet($user); // Expire wallet $googleCard->expireWallet($user);
Apple Wallet
use DigicardWalletLibrary\AppleCard; use DigicardWalletLibrary\WalletUser; // Initialize Apple Wallet integration $appleCard = new AppleCard( $certPath, $certPassword, $wwdrCertPath, $teamIdentifier, $passTypeIdentifier, $organizationName, $validationUrl ); // Create a wallet user $user = new WalletUser(/* user data */); // Generate PKPass file $pkpassData = $appleCard->getWalletPass($user); // Update existing pass $updatedPass = $appleCard->updateWallet($user); // Expire pass $appleCard->expireWallet($user);
Requirements
- PHP 8.1 or higher
- GD extension with WebP support (for Apple Wallet image processing)
- Valid Google Wallet API credentials (for Google Wallet)
- Valid Apple Developer certificates (for Apple Wallet)
License
This project is licensed under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later).
See the LICENSE file for details or visit https://www.gnu.org/licenses/agpl-3.0.html
Authors
- Till Glöggler - gloeggler@elan-ev.de
- Farbod Zamani - zamani@elan-ev.de
About ELAN e.V.
This library is developed and maintained by elan e.V. - a non-profit organization dedicated to advancing digital education and e-learning solutions.
Copyright
Copyright © 2025 - 2026 ELAN e.V.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
Support
For issues, questions, or contributions, please contact elan e.V. or visit https://elan-ev.de
elan-ev/digicard-wallet-library 适用场景与选型建议
elan-ev/digicard-wallet-library 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 10 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 10 月 27 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 elan-ev/digicard-wallet-library 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 elan-ev/digicard-wallet-library 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 21
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: AGPL-3.0-or-later
- 更新时间: 2025-10-27