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

ActiveLibrary[API Development](/categories/api)

hdinnovations/laravel-polar-api
===============================

An API wrapper for the POLAR API.

v1.0.0(1y ago)1312MITPHPPHP ^8.2

Since Sep 24Pushed 1y ago1 watchersCompare

[ Source](https://github.com/HDInnovations/laravel-polar-api)[ Packagist](https://packagist.org/packages/hdinnovations/laravel-polar-api)[ Docs](https://github.com/hdinnovations/laravel-polar-api)[ Fund](https://polar.sh/HDInnovations/)[ RSS](/packages/hdinnovations-laravel-polar-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (12)Versions (2)Used By (0)

[![Polar Branding](https://camo.githubusercontent.com/c04046a6591f4b424a189c6c3168b4841af459c2fe452d757b633e8b02e0d36f/68747470733a2f2f692e706f7374696d672e63632f77426d665847584e2f6c6f676f6d61726b2d626c75652e706e67)](https://camo.githubusercontent.com/c04046a6591f4b424a189c6c3168b4841af459c2fe452d757b633e8b02e0d36f/68747470733a2f2f692e706f7374696d672e63632f77426d665847584e2f6c6f676f6d61726b2d626c75652e706e67) Laravel Polar API
=============================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#-laravel-polar-api)

[![Larastan Static Analysis](https://github.com/HDInnovations/laravel-polar-api/actions/workflows/larastan.yml/badge.svg)](https://github.com/HDInnovations/laravel-polar-api/actions/workflows/larastan.yml)[![Laravel Pint](https://github.com/HDInnovations/laravel-polar-api/actions/workflows/pint.yml/badge.svg)](https://github.com/HDInnovations/laravel-polar-api/actions/workflows/pint.yml)[![Pest Testing Suite](https://github.com/HDInnovations/laravel-polar-api/actions/workflows/pest.yml/badge.svg)](https://github.com/HDInnovations/laravel-polar-api/actions/workflows/pest.yml)[![Pest Type Coverage](https://github.com/HDInnovations/laravel-polar-api/actions/workflows/type-coverage.yml/badge.svg)](https://github.com/HDInnovations/laravel-polar-api/actions/workflows/type-coverage.yml)[![Packagist Version](https://camo.githubusercontent.com/d82653c13b77597a9233b0420773dae852f79b3cbc0071a7bdcf4e89fbd5cb7a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6864696e6e6f766174696f6e732f6c61726176656c2d706f6c61722d617069)](https://packagist.org/packages/hdinnovations/laravel-polar-api)[![Packagist Downloads](https://camo.githubusercontent.com/6b955c1d9c6daece891c4e1f1645c497fbc34eba8cb21b802ea49bff81f449cd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6864696e6e6f766174696f6e732f6c61726176656c2d706f6c61722d617069)](https://packagist.org/packages/hdinnovations/laravel-polar-api)

**Laravel Polar API** is a Laravel package that provides an API wrapper for polar.sh API. This package simplifies the process of interacting with the Polar API by providing a set of convenient methods and classes.

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

[](#installation)

To install the package, you can use Composer:

```
composer require hdinnovations/laravel-polar-api
```

Configuration
-------------

[](#configuration)

#### After installing the package, you need to publish the configuration file:

[](#after-installing-the-package-you-need-to-publish-the-configuration-file)

```
php artisan vendor:publish --provider="HDInnovations\LaravelPolarApi\Providers\PolarApiServiceProvider"
```

This command will publish a `polar-api.php` file in your `config` directory. You can use this file to configure the package. The configuration file contains the following options:

- `base_url`: The base URL of the POLAR API.
- `token`: The token (PAT) used to authenticate requests to the POLAR API.

#### You can also set the `POLAR_API_BASE_URL` and `POLAR_API_TOKEN` environment variables in your `.env` file which is recommended.

[](#you-can-also-set-the-polar_api_base_url-and-polar_api_token-environment-variables-in-your-env-file-which-is-recommended)

Usage Documentation
-------------------

[](#usage-documentation)

Please refer to our [documentation](https://hdinnovations.github.io/laravel-polar-api/) for detailed information on how to use this package and the endpoints + parameters it supports.

Exceptions
----------

[](#exceptions)

The package throws the following exceptions:

- `HDInnovations\LaravelPolarApi\Exceptions\PolarApiNotFoundException`: Thrown when the requested resource is not found.
- `HDInnovations\LaravelPolarApi\Exceptions\PolarApiUnprocessableEntityException`: Thrown when the request is invalid.
- `HDInnovations\LaravelPolarApi\Exceptions\PolarApiValidationException`: Thrown when the request validation fails.
- `HDInnovations\LaravelPolarApi\Exceptions\PolarApiUnauthorizedException`: Thrown when the request is unauthorized.

Testing
-------

[](#testing)

To run the tests, use the following command:

```
composer test
```

Test Coverage
-------------

[](#test-coverage)

To generate the test coverage, use the following command:

```
composer test-coverage
```

Static Analysis
---------------

[](#static-analysis)

To run static analysis, use the following command:

```
composer analyze
```

Type Coverage
-------------

[](#type-coverage)

To check the type coverage, use the following command:

```
composer test-type-coverage
```

License
-------

[](#license)

The package is open-source software licensed under the [MIT license](https://opensource.org/licenses/MIT).

Roadmap
-------

[](#roadmap)

- Support all GET requests
- Support all POST requests
- Support all PUT requests
- Support all DELETE requests
- Add more exception handling
- Add more examples
- 100% test coverage
- 100% type coverage

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

595d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ad4ed27be5eced22f5a4f11db53d67bf16a7a9c6229d5857d5bd4cca84fbc3a0?d=identicon)[HDVinnie](/maintainers/HDVinnie)

---

Top Contributors

[![HDVinnie](https://avatars.githubusercontent.com/u/12850699?v=4)](https://github.com/HDVinnie "HDVinnie (43 commits)")

---

Tags

laravelpolarpolar-apipolarsourcehdinnovationslaravel-polar-api

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/hdinnovations-laravel-polar-api/health.svg)

```
[![Health](https://phpackages.com/badges/hdinnovations-laravel-polar-api/health.svg)](https://phpackages.com/packages/hdinnovations-laravel-polar-api)
```

###  Alternatives

[spatie/laravel-route-attributes

Auto register routes using PHP attributes

879963.2k18](/packages/spatie-laravel-route-attributes)[andreaselia/laravel-api-to-postman

Generate a Postman collection automatically from your Laravel API

1.0k586.2k3](/packages/andreaselia-laravel-api-to-postman)[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[neuron-core/neuron-laravel

Official Neuron AI Laravel SDK.

10710.0k](/packages/neuron-core-neuron-laravel)[codebar-ag/laravel-docuware

DocuWare integration with Laravel

1221.1k](/packages/codebar-ag-laravel-docuware)[codebar-ag/laravel-zammad

Zammad integration with Laravel

106.1k](/packages/codebar-ag-laravel-zammad)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
