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

ActiveLibrary[API Development](/categories/api)

spatie/spatie-content-api
=========================

The content API used at promotional sites for our own products

3.5.0(3mo ago)515.5k↓41.3%2MITPHPPHP ^8.3CI passing

Since Oct 13Pushed 1w ago1 watchersCompare

[ Source](https://github.com/spatie/spatie-content-api)[ Packagist](https://packagist.org/packages/spatie/spatie-content-api)[ Docs](https://github.com/spatie/spatie-content-api)[ RSS](/packages/spatie-spatie-content-api/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (10)Dependencies (28)Versions (27)Used By (0)

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

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

[![Latest Version on Packagist](https://camo.githubusercontent.com/d611dcdeb69d8f3474ad3238c4f59932b77edb7c8c54435df58cb5c46d3404f8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7370617469652f7370617469652d636f6e74656e742d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/spatie-content-api)[![GitHub Tests Action Status](https://github.com/spatie/spatie-content-api/actions/workflows/run-tests.yml/badge.svg)](https://github.com/spatie/spatie-content-api/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://github.com/spatie/spatie-content-api/actions/workflows/fix-php-code-style-issues.yml/badge.svg)](https://github.com/spatie/spatie-content-api/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/f3dc59c5f0054311138989db68e13bb952e31d097d4ae5071669325450c33bbf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7370617469652f7370617469652d636f6e74656e742d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/spatie-content-api)

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

[](#support-us)

[![](https://camo.githubusercontent.com/601d00db4853831348510e3d1efb0245ead1cf2ebe414dd6caaf659d89771c05/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f7370617469652d636f6e74656e742d6170692e6a70673f743d31)](https://spatie.be/github-ad-click/spatie-content-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-content-api
```

Usage
-----

[](#usage)

```
$posts = \Spatie\ContentApi\ContentApi::getPosts('mailcoach');
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

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

[](#security-vulnerabilities)

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

Credits
-------

[](#credits)

- [Rias](https://github.com/spatie)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

56

—

FairBetter than 97% of packages

Maintenance90

Actively maintained with recent releases

Popularity34

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity68

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 ~42 days

Recently: every ~99 days

Total

22

Last Release

108d ago

Major Versions

1.6.0 → 2.0.02023-12-14

2.1.0 → 3.0.02024-01-08

PHP version history (2 changes)1.0.0PHP ^8.2

3.5.0PHP ^8.3

### Community

Maintainers

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

---

Top Contributors

[![riasvdv](https://avatars.githubusercontent.com/u/3626559?v=4)](https://github.com/riasvdv "riasvdv (38 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (20 commits)")[![Nielsvanpach](https://avatars.githubusercontent.com/u/10651054?v=4)](https://github.com/Nielsvanpach "Nielsvanpach (14 commits)")[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (11 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (11 commits)")[![sebastiandedeyne](https://avatars.githubusercontent.com/u/1561079?v=4)](https://github.com/sebastiandedeyne "sebastiandedeyne (4 commits)")[![rubenvanassche](https://avatars.githubusercontent.com/u/619804?v=4)](https://github.com/rubenvanassche "rubenvanassche (2 commits)")[![AlexVanderbist](https://avatars.githubusercontent.com/u/6287961?v=4)](https://github.com/AlexVanderbist "AlexVanderbist (2 commits)")

---

Tags

spatielaravelspatie-content-api

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k102.4M1.4k](/packages/spatie-laravel-permission)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M165](/packages/spatie-laravel-health)[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k11.2M100](/packages/dedoc-scramble)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.8k3](/packages/defstudio-telegraph)

PHPackages © 2026

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