PHPackages                             danestves/laravel-polar - 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. [Payment Processing](/categories/payments)
4. /
5. danestves/laravel-polar

ActiveLibrary[Payment Processing](/categories/payments)

danestves/laravel-polar
=======================

A package to easily integrate your Laravel application with Polar.sh

v2.13.2(1mo ago)8120.4k—2.8%13[1 issues](https://github.com/danestves/laravel-polar/issues)[4 PRs](https://github.com/danestves/laravel-polar/pulls)MITPHPPHP ^8.3CI passing

Since Feb 23Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/danestves/laravel-polar)[ Packagist](https://packagist.org/packages/danestves/laravel-polar)[ Docs](https://github.com/danestves/laravel-polar)[ GitHub Sponsors](https://github.com/danestves)[ Fund](https://polar.sh/danestves)[ RSS](/packages/danestves-laravel-polar/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (10)Dependencies (78)Versions (62)Used By (0)

[![](https://camo.githubusercontent.com/85c3302a115224bc199e7fa73aa1485c16857e0294d8bc4cd326b3b55b9db915/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f6c61726176656c2d706f6c61722e706e673f7468656d653d6461726b267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d64616e6573747665732532466c61726176656c2d706f6c6172267061747465726e3d706965466163746f7279267374796c653d7374796c655f31266465736372697074696f6e3d456173696c792b696e746567726174652b796f75722b4c61726176656c2b6170706c69636174696f6e2b776974682b506f6c61722e7368266d643d312673686f7757617465726d61726b3d3126666f6e7453697a653d313030707826696d616765733d68747470732533412532462532466c61726176656c2e636f6d253246696d672532466c6f676f6d61726b2e6d696e2e737667 "Laravel Polar")](https://camo.githubusercontent.com/85c3302a115224bc199e7fa73aa1485c16857e0294d8bc4cd326b3b55b9db915/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f6c61726176656c2d706f6c61722e706e673f7468656d653d6461726b267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d64616e6573747665732532466c61726176656c2d706f6c6172267061747465726e3d706965466163746f7279267374796c653d7374796c655f31266465736372697074696f6e3d456173696c792b696e746567726174652b796f75722b4c61726176656c2b6170706c69636174696f6e2b776974682b506f6c61722e7368266d643d312673686f7757617465726d61726b3d3126666f6e7453697a653d313030707826696d616765733d68747470732533412532462532466c61726176656c2e636f6d253246696d672532466c6f676f6d61726b2e6d696e2e737667)

Laravel Polar
=============

[](#laravel-polar)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f5c088e058c428c85fc2b9c37a29a9c1ef559046d50496613f3701342665447e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64616e6573747665732f6c61726176656c2d706f6c61722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/danestves/laravel-polar)[![GitHub Tests Action Status](https://camo.githubusercontent.com/2b19bc50878605659a9c0e24c3f253c4bbbc7d71a21ec2d1bc6546b063a7246b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f64616e6573747665732f6c61726176656c2d706f6c61722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/danestves/laravel-polar/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/483f09cd6035d0a12b1203beff86ba7d8624a406cee723e138d0d2594f23421a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f64616e6573747665732f6c61726176656c2d706f6c61722f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/danestves/laravel-polar/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/6710359bb3095ac022dc212f13b1c8ee98f90dc0f60573d2e7955053f2a3e9d0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64616e6573747665732f6c61726176656c2d706f6c61722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/danestves/laravel-polar)

  ![Subscribe on Polar](https://camo.githubusercontent.com/06e6f7b713f6a804e556e9b81044452eb27422ff0c2d550b93209e6e797a99c5/68747470733a2f2f706f6c61722e73682f656d6265642f7375627363726962652e7376673f6f72673d64616e6573747665732d6c6c63266c6162656c3d537562736372696265)Seamlessly integrate Polar.sh subscriptions and payments into your Laravel application. This package provides an elegant way to handle subscriptions, manage recurring payments, and interact with Polar's API. With built-in support for webhooks, subscription management, and a fluent API, you can focus on building your application while we handle the complexities of subscription billing.

Installation
------------

[](#installation)

**Step 1:** You can install the package via composer:

```
composer require danestves/laravel-polar
```

**Step 2:** Run `:install`:

```
php artisan polar:install
```

This will publish the config, migrations and views, and ask to run the migrations.

Or publish and run the migrations individually:

```
php artisan vendor:publish --tag="polar-migrations"
```

```
php artisan vendor:publish --tag="polar-config"
```

```
php artisan vendor:publish --tag="polar-views"
```

```
php artisan migrate
```

This is the contents of the published config file:

```
