Download the PHP package laulamanapps/google-wallet-symfony without Composer

On this page you can find all versions of the php package laulamanapps/google-wallet-symfony. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package google-wallet-symfony

Google Wallet Symfony Bundle

This package provides Symfony integration for the LauLamanApps Google Wallet Package.

Requirements

Installation

Register the bundle (skipped automatically when using Symfony Flex):

Get a Service Account

Head over to the Google Wallet Console and create a service account with access to the Google Wallet API. Download the JSON key file for that service account.

Configure Bundle

Add the ENV variable to the .env file:

Security note: always reference the service-account key file path through %env(...)% as shown above. A literal value in the bundle configuration would be written into Symfony's compiled container in var/cache.

Configuration reference

Key Required Default Description
service_account yes — Path to the Google service-account JSON key file
origins no [] Allowed origins for the Save to Google Wallet button
callback.enabled no false Enable the save/delete callback (webhook) endpoint
callback.issuer_id when enabled null Your Google Wallet issuer id, used to verify callback signatures
callback.environment no 'production' Google root signing keys to verify against: production / test

Usage

Inject the SaveUrlFactory to create "Save to Google Wallet" links:

See the laulamanapps/google-wallet README for details on building pass objects and classes.

Save/delete callbacks

Google can notify your application whenever a user saves or deletes a pass. The bundle ships a ready-made webhook endpoint that verifies each callback (Google's ECv2SigningOnly signature scheme) and turns it into a Symfony event. Verification is enforced server-side: unverifiable requests are rejected with a 400 response and no event is dispatched, so your listeners only ever see messages that provably came from Google.

1. Enable the callback endpoint

2. Import the routes

or in yaml:

This exposes a single route, googlewallet_callback: POST /google-wallet/callback.

3. Register the callback url on your pass classes

Google only sends callbacks for passes whose class declares a callback url. Set your public HTTPS URL (Google requires https://) on the pass classes you create:

4. Listen to the events

The endpoint dispatches LauLamanApps\GoogleWalletBundle\Event\PassSavedEvent when a user saves a pass and LauLamanApps\GoogleWalletBundle\Event\PassDeletedEvent when a user deletes one:

Both events expose the verified message via getCallbackEvent(), which returns the core lib's CallbackEvent (event type, expiration and nonce). Callbacks are delivered at least once, so use getCallbackEvent()->getNonce() to deduplicate.

Credits

This package has been developed by LauLaman.


All versions of google-wallet-symfony with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
laulamanapps/google-wallet Version ^1.0
symfony/framework-bundle Version ^6.4|^7.0|^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package laulamanapps/google-wallet-symfony contains the following files

Loading the files please wait ...