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

ActiveLibrary

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

The content API used at promotional sites for our own products

3.5.0(2mo ago)311.1k↓50%2[1 PRs](https://github.com/spatie/spatie-content-api/pulls)MITPHPPHP ^8.3CI passing

Since Oct 13Pushed 2mo 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 1mo 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://camo.githubusercontent.com/c97c50b775709907a0ca1b14ed2805fd018c0ea68d35cd03a104c7d3ca20348d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7370617469652f7370617469652d636f6e74656e742d6170692f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/spatie/spatie-content-api/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/b294e16f387e937cb424a5f8594d9b4884dbc8d543bb7a2f2468baece6c99955/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7370617469652f7370617469652d636f6e74656e742d6170692f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](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

54

—

FairBetter than 97% of packages

Maintenance88

Actively maintained with recent releases

Popularity30

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

62d 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] (16 commits)")[![Nielsvanpach](https://avatars.githubusercontent.com/u/10651054?v=4)](https://github.com/Nielsvanpach "Nielsvanpach (14 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (10 commits)")[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (8 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-health

Monitor the health of a Laravel application

86910.0M83](/packages/spatie-laravel-health)[spatie/laravel-data

Create unified resources and data transfer objects

1.8k28.9M627](/packages/spatie-laravel-data)[spatie/laravel-slack-alerts

Send a message to Slack

3212.6M4](/packages/spatie-laravel-slack-alerts)[spatie/laravel-login-link

Quickly login to your local environment

4381.2M1](/packages/spatie-laravel-login-link)[spatie/laravel-onboard

A Laravel package to help track user onboarding steps

808342.9k1](/packages/spatie-laravel-onboard)[spatie/laravel-model-flags

Add flags to Eloquent models

4301.1M1](/packages/spatie-laravel-model-flags)

PHPackages © 2026

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