PHPackages                             spatie/spatie-price-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. spatie/spatie-price-api

ActiveLibrary[API Development](/categories/api)

spatie/spatie-price-api
=======================

The Price API used at promotional sites for our own products

1.6.0(1mo ago)1515.1k↓66.7%1MITPHPPHP ^8.2CI failing

Since Nov 25Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/spatie/spatie-price-api)[ Packagist](https://packagist.org/packages/spatie/spatie-price-api)[ Docs](https://github.com/spatie/spatie-price-api)[ GitHub Sponsors](https://github.com/sponsors/spatie)[ Fund](https://spatie.be/open-source/support-us)[ RSS](/packages/spatie-spatie-price-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (12)Versions (15)Used By (1)

The price API used at promotional sites for our own products
============================================================

[](#the-price-api-used-at-promotional-sites-for-our-own-products)

[![Latest Version on Packagist](https://camo.githubusercontent.com/47c2d47bf8680ef21670fb48164e2f66a143074045782fe0b12db4edafc8d76d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7370617469652f7370617469652d70726963652d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/spatie-price-api)[![Tests](https://github.com/spatie/spatie-price-api/workflows/Tests/badge.svg)](https://github.com/spatie/spatie-price-api/workflows/Tests/badge.svg)[![Total Downloads](https://camo.githubusercontent.com/6fa17f3f19947bb2fda8609dbdfecf22b46a78933ff017680e080af40ff9ec29/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7370617469652f7370617469652d70726963652d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/spatie-price-api)

This package can retrieve prices from the API at spatie.be. It is used at the promotional sites for [our own products](https://spatie.be/products). Though it is open source, the package is not intended to be used by third parties.

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/8784d831d9e00a6225158b9dd55d21bf0f346ca4095c04b7b093a51f64c1f824/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f7370617469652d70726963652d6170692e6a70673f743d32)](https://spatie.be/github-ad-click/spatie-price-api)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

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

[](#installation)

You can install the package via composer:

```
composer require spatie/spatie-price-api
```

Usage
-----

[](#usage)

You can get a pricing information using the `App\Support\SpatiePrices\SpatiePriceApi::getPriceForPurchasable()` method.

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Freek Van der Herten](https://github.com/freekmurze)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

56

—

FairBetter than 98% of packages

Maintenance89

Actively maintained with recent releases

Popularity33

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Every ~149 days

Recently: every ~356 days

Total

14

Last Release

57d ago

PHP version history (3 changes)1.0.0PHP ^7.4|^8.0

1.1.1PHP ^8.0

1.4.0PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7535935?v=4)[Spatie](/maintainers/spatie)[@spatie](https://github.com/spatie)

---

Top Contributors

[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (29 commits)")[![AlexVanderbist](https://avatars.githubusercontent.com/u/6287961?v=4)](https://github.com/AlexVanderbist "AlexVanderbist (20 commits)")[![riasvdv](https://avatars.githubusercontent.com/u/3626559?v=4)](https://github.com/riasvdv "riasvdv (11 commits)")[![AdrianMrn](https://avatars.githubusercontent.com/u/12762044?v=4)](https://github.com/AdrianMrn "AdrianMrn (5 commits)")[![timvandijck](https://avatars.githubusercontent.com/u/4528796?v=4)](https://github.com/timvandijck "timvandijck (2 commits)")

---

Tags

phpspatiespatie-price-api

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/spatie-spatie-price-api/health.svg)

```
[![Health](https://phpackages.com/badges/spatie-spatie-price-api/health.svg)](https://phpackages.com/packages/spatie-spatie-price-api)
```

###  Alternatives

[spatie/laravel-query-builder

Easily build Eloquent queries from API requests

4.4k26.9M220](/packages/spatie-laravel-query-builder)[spatie/laravel-route-attributes

Auto register routes using PHP attributes

879963.2k18](/packages/spatie-laravel-route-attributes)[spatie/laravel-export

Create a static site bundle from a Laravel app

646127.9k5](/packages/spatie-laravel-export)[spatie/laravel-rdap

Perform RDAP queries in a Laravel app

72108.3k2](/packages/spatie-laravel-rdap)[spatie/laravel-route-discovery

Auto register routes using PHP attributes

23645.0k2](/packages/spatie-laravel-route-discovery)[spatie/interactive-slack-notification-channel

Send interactive Slack notifications in Laravel apps

6571.7k1](/packages/spatie-interactive-slack-notification-channel)

PHPackages © 2026

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