{"repo":"lmsqueezy/laravel","free":true,"listed":false,"github":"https://github.com/lmsqueezy/laravel","clone":"git clone https://github.com/lmsqueezy/laravel.git","description":"A package to easily integrate your Laravel application with Lemon Squeezy.","language":"PHP","stars":590,"topics":["billing","laravel","php","lemonsqueezy"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Lemon Squeezy for Laravel A package to easily integrate your Laravel application with Lemon Squeezy. It takes the pain out of setting up a checkout experience. Easily set up payments for your products or let your customers subscribe to your product plans. Handle grace periods, pause subscriptions, or offer free trials. This package drew inspiration from Cashier which was created by Taylor Otwell. We also recommend to read the Lemon Squeezy docs and developer guide. Roadmap The below features are not yet in this package but are planned to be added in the future: - Subscription invoices - Usage Based Billing - Marketing emails check - Create discount codes - Nova integration Requirements - PHP 8.1 or higher - Laravel 10.0 or higher Installation There are a few steps you'll need to take to install the package: 1. Requiring the package through Composer 2. Creating an API Key 3. Connecting your store 4. Configuring the Billable Model 5. Running Migrations 6. Connecting to Lemon JS 7. Setting up webhooks We'll go over each of these below. Composer Install the package with composer: API Key Next, configure your API key. Create a new key in testing mode in the Lemon Squeezy dashboard and paste them in your .env file as shown below: When you're deploying your app to production, you'll have to create a new key in production mode to work with live data. Store Identifier Your store identifier will be used when creating checkouts for your products. Go to your Lemon Squeezy stores settings","default_branch":null,"files":null,"tree":[],"storefront":"/r/lmsqueezy","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/lmsqueezy/laravel/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}