Download the PHP package einenlum/cashier-paddle-webhooks without Composer

On this page you can find all versions of the php package einenlum/cashier-paddle-webhooks. 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 cashier-paddle-webhooks

cashier-paddle-webhooks

A package to automatically listen to Paddle Webhooks in local development with Laravel Cashier

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status

This package allows you to setup Paddle webhooks locally in just one command, thanks to tunnelmole. When the command is killed, it removes the webhook from Paddle. The library only works in sandbox mode.

This is heavily inspired from this awesome command made by the LemonSqueezy team for their Laravel package. Kudo to them! :heart:

The difference with the original package is that Paddle doesn't allow to create a webhook with a specific webhook secret. It's automatically generated by Paddle (on the contrary to LemonSqueezy). This means I had to add a few steps to make it work.

This library relies on cache to temporarily override the webhook secret.

Requirements

This library does not work on Windows (because of signal handling).

You will also need to setup at least these envs:

Installation

You should then add this in your AppServiceProvider:

This must be done in the register method and not the boot one. See here.

This will allow the package to override the webhook page that is declared by Cashier Paddle. We must override it to use our Middleware instead of Cashier's one, because we need to get the Webhook secret from the cache if it exists.

You can publish the config file with:

This is the contents of the published config file:

Usage

This will create a tunnel thanks to tunnelmole which listens to http://localhost:8000, create a webhook on Paddle sandbox, fetch its id and secret, and set the secret into cache (whatever your cache setup is). When the command is killed, it removes the webhook from Paddle and removes the key from the cache.

Then in the VerifyPaddleWebhookMiddleware, the cached secret key is used if it exists and if you are not in production.

You can change the port with

Testing

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

Other projects of mine

License

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


All versions of cashier-paddle-webhooks with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/contracts Version ^11.0||^12.0
laravel/cashier-paddle Version ^2.6
spatie/laravel-package-tools Version ^1.16
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 einenlum/cashier-paddle-webhooks contains the following files

Loading the files please wait ...