PHPackages                             seisigmasrl/lemonsqueezy-php - 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. [API Development](/categories/api)
4. /
5. seisigmasrl/lemonsqueezy-php

ActiveLibrary[API Development](/categories/api)

seisigmasrl/lemonsqueezy-php
============================

Lemon Squeezy API client for PHP

1.3.0(3y ago)262748[5 PRs](https://github.com/seisigmasrl/lemonsqueezy.php/pulls)MITPHPPHP ^8.2CI passing

Since Mar 30Pushed 7mo ago2 watchersCompare

[ Source](https://github.com/seisigmasrl/lemonsqueezy.php)[ Packagist](https://packagist.org/packages/seisigmasrl/lemonsqueezy-php)[ Docs](https://github.com/seisigmasrl/lemonsqueezy.php)[ GitHub Sponsors](https://github.com/ricardov03)[ RSS](/packages/seisigmasrl-lemonsqueezy-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (12)Versions (10)Used By (0)

Lemon Squeezy API client for PHP
================================

[](#lemon-squeezy-api-client-for-php)

[![Latest Version on Packagist](https://camo.githubusercontent.com/cfac71f83140d0609bb0b39946eb4b538405db2a060773b10745321823cd93dd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7365697369676d6173726c2f6c656d6f6e73717565657a792d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/seisigmasrl/lemonsqueezy-php)[![Tests](https://camo.githubusercontent.com/5114f136679dd91d0fc2c8916d80f3b105e01e3b6b6564b9d6abcfd76e6fdac1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7365697369676d6173726c2f6c656d6f6e73717565657a792e7068702f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/seisigmasrl/lemonsqueezy.php/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/b920c3096e6327d1f1ffb86f7f86c86b48fe79cda613d276f5d9863d09d501ec/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7365697369676d6173726c2f6c656d6f6e73717565657a792d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ricardov03/lemonsqueezy-php)

I love the competition that came from innovation. For businesses and creators worldwide, being able to charge for services is one of the most needed requirements in this global world. Sadly, few companies can bring this kind of solution. Lemon Squeeze brings payments, tax &amp; subscriptions for software companies by being your merchant of record, handling the tax compliance burden so you can focus on more revenue and less headache.

This SDK wraps the Lemon Squeeze API to simplify the service integration with the PHP language.

> I started this project with personal and professional motivation. So I'm putting all the effort into finishing the to-do list as fast as possible. To start the hype about the package, I'm opening this from day one and pushing every new endpoint as a new feature release. I include the package core + Users endpoint information for the first release.

Installation
============

[](#installation)

This package requires PHP 8.2. To get started, install it using [Composer](https://getcomposer.org/) like this:

```
composer require seisigmasrl/lemonsqueezy-php
```

This SDK architecture is highly inspired by the [DigitalOcean Client](https://github.com/DigitalOceanPHP/Client) package by decoupling from any HTTP messaging client by using [PSR-7](https://www.php-fig.org/psr/psr-7/), [PSR-17](https://www.php-fig.org/psr/psr-17/), [PSR-18](https://www.php-fig.org/psr/psr-18/), and [HTTPlug](https://httplug.io/). You can visit [HTTPlug for library users](https://docs.php-http.org/en/latest/httplug/users.html) to get more information about installing HTTPlug related packages. This package will automatically discover an HTTP client to use from what you have available.

Usage
-----

[](#usage)

> I'll be creating an official website with the final documentation of the SDK, but in the meantime, here are the details of the current options:

```
# Initializing the Package
