Download the PHP package alyakin/liqpay-laravel without Composer

On this page you can find all versions of the php package alyakin/liqpay-laravel. 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 liqpay-laravel

Laravel package for Liqpay integration (liqpay-laravel)

Latest Version on Packagist Downloads Laravel PHP License

PHPUnit Laravel Pint Larastan

Package for integrating Liqpay into Laravel application. It allows generating payment links, signing requests, and handling incoming webhook events from Liqpay.


Table of Contents

Requirements

Installation

Add the package via Composer:

Publishing the configuration:

Check the created configuration and migration files, make changes (add your own fields if needed), and then run


Custom columns support: If you add custom fields to the liqpay_subscriptions table, the package provides an event mechanism allowing you to process and update those fields before saving the model.

You can subscribe to the LiqpaySubscriptionBeforeSave event to supplement or modify the record dynamically, for example — to populate user_id from webhook data or any custom logic.

See usage example in the Extending Subscription Model Fields via Event

Configuration

After publishing, the configuration file config/liqpay.php contains:

All parameters can be overridden through the .env file:

Usage

Generating a payment link

Handling webhook from Liqpay (events)

The package automatically registers the route /api/liqpay/webhook (the route from the config) and includes a handler for incoming requests.

When the webhook is triggered, the following events are called:

After the general event is triggered, events corresponding to the statuses will be called:

To handle these events in your Laravel application, you can register the corresponding event listeners. Pay special attention to the package's behavior in case of errors in event handlers.

Example of registering a listener for the LiqpayPaymentSucceeded event:

The event has a property dto, which is an object.

You can also enable the built-in event handler LiqpayWebhookReceived for logging all incoming webhooks by registering it in app/Providers/EventServiceProvider.php in the boot method as follows:

📦 Subscription support

The package supports automatic subscription registration via webhook (action: subscribe) and deactivation (status: unsubscribed).

📥 Importing subscriptions from the archive

To import and synchronize Liqpay subscriptions in bulk, use the built-in Artisan command:

Example:

The archive is downloaded directly from the Liqpay API, and large datasets are handled reliably, even with failures or restarts.


Recommended for initial data loading.

🔧 Managing subscriptions manually

Localization & Translations

All messages support translations out of the box (en/ru/uk). For best practices and details on customizing translations, see TRANSLATIONS.md.

Testing

All tests can be found in the folder with tests

To run the tests, use the command

License

This package is distributed under the MIT License.


All versions of liqpay-laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^9.0|^10.0|^11.0
ext-json Version *
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 alyakin/liqpay-laravel contains the following files

Loading the files please wait ....