Download the PHP package petzsch/laravel-btcpay without Composer

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

Laravel BTCPay

LaravelBtcPay Social Image

Latest Version on Packagist Total Downloads

Laravel BTCPay enables you and your business to transact in Bitcoin, Litecoin and 10+ other BTCPay-supported cryptocurrencies within your Laravel application.

Contents

Installation

Requirements

Install package

You can install the package via composer:

Publish config file

Publish config file with:

This will create a btcpay.php file inside your config directory.

Add configuration values

Add the following keys to your .env file and update the values to match your preferences (read more about configuration):

Interaction with API

This package is wrapping the BTCPay Greenfield PHP SDK, so you can use all features provided by the SDK. You can access the endpoint clients via the BTCPay facade. For example, to access the Invoice endpoint client, you can use:

Webhooks

BTCPay resource status updates are completely based on webhooks (IPNs). Laravel BTCPay fully capable of automatically handling webhook requests. Whenever a webhook is received from BTCPay's server, \Petzsch\LaravelBtcpay\Events\WebhookReceived event is dispatched. Take the following steps to configure your application for webhook listening:

1. Use package route or define your own

By default, package provides a btcpay/webhook route that will listen for incoming webhook POST requests from BTCPay's server. It automatically verifies the request signature and dispatch event only if it is valid. You can change the default route path in the btcpay.php config file by updating the webhook.prefix key.

:information_source: To retrieve webhook route anywhere in your application, use: route('btcpay.webhook')

Alternatively, you can disable the package route by setting webhook.prefix to false in the btcpay.php config file and define your own route in your routes/web.php or routes/api.php file:

2. Setup your webhook listener

Start by generating an event listener:

Then, implement your application-specific logic in the handle(...) function of the generated listener.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-btcpay with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-json Version *
021/api-entity Version ^2.1
btcpayserver/btcpayserver-greenfield-php Version ^2.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 petzsch/laravel-btcpay contains the following files

Loading the files please wait ...