PHPackages                             climactic/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. climactic/laravel-polar

ActiveLibrary[Payment Processing](/categories/payments)

climactic/laravel-polar
=======================

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

v2.2.1(3mo ago)1226↓77.8%[3 PRs](https://github.com/Climactic/laravel-polar/pulls)MITPHPPHP ^8.3CI passing

Since Feb 28Pushed 2mo agoCompare

[ Source](https://github.com/Climactic/laravel-polar)[ Packagist](https://packagist.org/packages/climactic/laravel-polar)[ Docs](https://github.com/climactic/laravel-polar)[ GitHub Sponsors](https://github.com/climactic)[ RSS](/packages/climactic-laravel-polar/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (3)Dependencies (38)Versions (7)Used By (0)

[![](https://camo.githubusercontent.com/1a397b4b45aaa707507e56385475f6f63f8248cd445547f6bde4beca82afb934/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c253230506f6c61722e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d636c696d61637469632532466c61726176656c2d706f6c6172267061747465726e3d706965466163746f7279267374796c653d7374796c655f31266465736372697074696f6e3d506f6c61722e73682b4c61726176656c2b496e746567726174696f6e266d643d312673686f7757617465726d61726b3d3126666f6e7453697a653d313030707826696d616765733d68747470733a2f2f6769746875622e636f6d2f706f6c6172736f757263652f706f6c61722f7261772f726566732f68656164732f6d61696e2f7365727665722f706f6c61722f6261636b6f66666963652f7374617469632f6c6f676f2e6c696768742e737667 "Laravel Polar")](https://camo.githubusercontent.com/1a397b4b45aaa707507e56385475f6f63f8248cd445547f6bde4beca82afb934/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c253230506f6c61722e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d636c696d61637469632532466c61726176656c2d706f6c6172267061747465726e3d706965466163746f7279267374796c653d7374796c655f31266465736372697074696f6e3d506f6c61722e73682b4c61726176656c2b496e746567726174696f6e266d643d312673686f7757617465726d61726b3d3126666f6e7453697a653d313030707826696d616765733d68747470733a2f2f6769746875622e636f6d2f706f6c6172736f757263652f706f6c61722f7261772f726566732f68656164732f6d61696e2f7365727665722f706f6c61722f6261636b6f66666963652f7374617469632f6c6f676f2e6c696768742e737667)

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

[](#laravel-polar)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e35b3349380ee5dc27ab01c9d6e8d4665839bb5b20b21e0bc540ecec093e36b3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636c696d61637469632f6c61726176656c2d706f6c61722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/climactic/laravel-polar)[![GitHub Tests Action Status](https://camo.githubusercontent.com/157638194023c98a62b100d6300eea69d5899559b03168a818e3db8a7fd85c71/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f636c696d61637469632f6c61726176656c2d706f6c61722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/climactic/laravel-polar/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/3eac01c589fabb1532edc8b3eeecb6a666fcfcbc57daf103670b5ae222d9eba3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f636c696d61637469632f6c61726176656c2d706f6c61722f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/climactic/laravel-polar/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/3edee4c19ce88fcc8aee893a6643c5b96498b676b62c6b7bd4ae4cdfbefb5b1e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636c696d61637469632f6c61726176656c2d706f6c61722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/climactic/laravel-polar)

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 climactic/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:

```
