PHPackages                             elan-ev/digicard-wallet-library - 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. elan-ev/digicard-wallet-library

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

elan-ev/digicard-wallet-library
===============================

Connector to Google and Apple Wallet for Digital Campuscard

0101PHP

Since Nov 12Pushed 6mo ago4 watchersCompare

[ Source](https://github.com/elan-ev/digicard-wallet-library)[ Packagist](https://packagist.org/packages/elan-ev/digicard-wallet-library)[ RSS](/packages/elan-ev-digicard-wallet-library/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Digicard Wallet Library
=======================

[](#digicard-wallet-library)

A PHP library for integrating digital campuscards with Google Wallet and Apple Wallet.

Description
-----------

[](#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
--------

[](#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 `WalletUser` class to represent user information
- **Customizable**: Support for multiple study courses, semester information, and institution branding

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

[](#installation)

Install via Composer:

```
composer require elan-ev/digicard-wallet-library
```

Usage
-----

[](#usage)

### Google Wallet

[](#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

[](#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
------------

[](#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
-------

[](#license)

[![AGPL v3](https://camo.githubusercontent.com/a4757218a5cd1e3d33775764e00cbd265ddf03fcfec91b6da01e617f5840def5/68747470733a2f2f7777772e676e752e6f72672f67726170686963732f6167706c76332d3135357835312e706e67)](https://camo.githubusercontent.com/a4757218a5cd1e3d33775764e00cbd265ddf03fcfec91b6da01e617f5840def5/68747470733a2f2f7777772e676e752e6f72672f67726170686963732f6167706c76332d3135357835312e706e67)

This project is licensed under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later).

See the [LICENSE](LICENSE) file for details or visit

Authors
-------

[](#authors)

- **Till Glöggler** -
- **Farbod Zamani** -

About ELAN e.V.
---------------

[](#about-elan-ev)

This library is developed and maintained by [elan e.V.](https://elan-ev.de) - a non-profit organization dedicated to advancing digital education and e-learning solutions.

Copyright
---------

[](#copyright)

Copyright © 2025 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
-------

[](#support)

For issues, questions, or contributions, please contact elan e.V. or visit

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance47

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/547a4ff7de6fec2abb67d1fefb0d06d92256e40ada8bcc31ba7faca5bb662b93?d=identicon)[elan-ev](/maintainers/elan-ev)

---

Top Contributors

[![tgloeggl](https://avatars.githubusercontent.com/u/6160?v=4)](https://github.com/tgloeggl "tgloeggl (4 commits)")

### Embed Badge

![Health badge](/badges/elan-ev-digicard-wallet-library/health.svg)

```
[![Health](https://phpackages.com/badges/elan-ev-digicard-wallet-library/health.svg)](https://phpackages.com/packages/elan-ev-digicard-wallet-library)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
