PHPackages                             cloudcreativity/laravel-json-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. cloudcreativity/laravel-json-api

ActiveLibrary[API Development](/categories/api)

cloudcreativity/laravel-json-api
================================

JSON API (jsonapi.org) support for Laravel applications.

v7.2.0(1y ago)7881.1M—4.2%106[27 issues](https://github.com/cloudcreativity/laravel-json-api/issues)5Apache-2.0PHPPHP ^8.2CI passing

Since Oct 3Pushed 1mo ago29 watchersCompare

[ Source](https://github.com/cloudcreativity/laravel-json-api)[ Packagist](https://packagist.org/packages/cloudcreativity/laravel-json-api)[ Docs](https://github.com/cloudcreativity/laravel-json-api)[ RSS](/packages/cloudcreativity-laravel-json-api/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelogDependencies (12)Versions (89)Used By (5)

[![Tests](https://github.com/cloudcreativity/laravel-json-api/workflows/Tests/badge.svg)](https://github.com/cloudcreativity/laravel-json-api/workflows/Tests/badge.svg)

cloudcreativity/laravel-json-api
================================

[](#cloudcreativitylaravel-json-api)

Status
------

[](#status)

**DO NOT USE THIS PACKAGE FOR NEW PROJECTS - USE [laravel-json-api/laravel](https://github.com/laravel-json-api/laravel)INSTEAD.**

This package has now been rewritten, substantially improved and released as the `laravel-json-api/laravel` package. Documentation for the new version is available on our new website [laraveljsonapi.io](https://laraveljsonapi.io) and the code is now developed under the [Laravel JSON:API Github organisation.](https://github.com/laravel-json-api)

The `cloudcreativity/laravel-json-api` package is now considered to be the *legacy* package. As we know it is in use in a lot of production applications, it will continue to receive bug fixes and updates for new Laravel versions. However, it is no longer supported for new features.

If you are starting a new project, you MUST use the [new package `laravel-json-api/laravel`.](https://github.com/laravel-json-api/laravel)

Introduction
------------

[](#introduction)

Build feature-rich and standards-compliant APIs in Laravel.

This package provides all the capabilities you need to add [JSON API](http://jsonapi.org)compliant APIs to your application. Extensive support for the specification, including:

- Fetching resources
- Fetching relationships
- Inclusion of related resources (compound documents)
- Sparse fieldsets.
- Sorting.
- Pagination.
- Filtering
- Creating resources.
- Updating resources.
- Updating relationships.
- Deleting resources.
- Validation of:
    - JSON API documents; and
    - Query parameters.

The following additional features are also supported:

- Full support for Eloquent resources, with features such as:
    - Automatic eager loading when including related resources.
    - Easy relationship end-points.
    - Soft-deleting and restoring Eloquent resources.
    - Page and cursor based pagination.
- Asynchronous processing.
- Support multiple media-types within your API.
- Generators for all the classes you need to add a resource to your API.

### What is JSON API?

[](#what-is-json-api)

From [jsonapi.org](http://jsonapi.org)

> If you've ever argued with your team about the way your JSON responses should be formatted, JSON API is your anti-bikeshedding weapon.
>
> By following shared conventions, you can increase productivity, take advantage of generalized tooling, and focus on what matters: your application. Clients built around JSON API are able to take advantage of its features around efficiently caching responses, sometimes eliminating network requests entirely.

For full information on the spec, plus examples, see .

Documentation
-------------

[](#documentation)

Full package documentation is available on [Read the Docs](http://laravel-json-api.readthedocs.io/en/latest/).

Slack
-----

[](#slack)

Join the Laravel JSON:API community on [Slack.](https://join.slack.com/t/laraveljsonapi/shared_invite/zt-e3oi2r4y-8nkmhzpKnPQViaXrkPJHtQ)

Laravel Versions
----------------

[](#laravel-versions)

LaravelThis Package`^9.0``^4.0``^8.0``^3.0`^7.0``^2.0``^6.0``^1.7``5.8.*``^1.7``5.7.*``^1.0``5.6.*``^1.0``5.5.*``^1.0`Make sure you consult the [Upgrade Guide](http://laravel-json-api.readthedocs.io/en/latest/upgrade/)when upgrading between major or pre-release versions.

License
-------

[](#license)

Apache License (Version 2.0). Please see [License File](LICENSE) for more information.

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

[](#installation)

Installation is via `composer`. See the documentation for complete instructions.

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

[](#contributing)

Contributions are absolutely welcome. Ideally submit a pull request, even more ideally with unit tests. Please note the following:

- **Bug Fixes** - submit a pull request against the `master` branch.
- **Enhancements / New Features** - submit a pull request against the `develop` branch.

We recommend submitting an issue before taking the time to put together a pull request.

###  Health Score

69

—

FairBetter than 100% of packages

Maintenance69

Regular maintenance activity

Popularity61

Solid adoption and visibility

Community39

Small or concentrated contributor base

Maturity91

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 93.9% 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

Every ~41 days

Recently: every ~191 days

Total

84

Last Release

423d ago

Major Versions

v3.3.0 → v4.0.02022-02-09

v4.0.1 → v5.0.0-alpha.12022-06-25

v4.1.0 → v5.0.02023-01-21

v5.0.0 → v6.0.02023-02-14

v6.1.0 → v7.0.02024-03-14

PHP version history (10 changes)v0.1.0PHP &gt;=5.5.0

v0.6.0PHP ^5.6|^7.0

v1.0.0-beta.4PHP ^7.1

v2.0.0-beta.1PHP ^7.2

v3.0.0PHP ^7.3

v3.2.0PHP ^7.3|^8.0

v4.0.0PHP ^7.4|^8.0

v4.1.0PHP ^8.0

v6.0.0PHP ^8.1

v7.0.0PHP ^8.2

### Community

Maintainers

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

---

Top Contributors

[![lindyhopchris](https://avatars.githubusercontent.com/u/4464333?v=4)](https://github.com/lindyhopchris "lindyhopchris (886 commits)")[![GIANTCRAB](https://avatars.githubusercontent.com/u/1075708?v=4)](https://github.com/GIANTCRAB "GIANTCRAB (8 commits)")[![jstoone](https://avatars.githubusercontent.com/u/1711456?v=4)](https://github.com/jstoone "jstoone (8 commits)")[![pedroluislopez](https://avatars.githubusercontent.com/u/9784609?v=4)](https://github.com/pedroluislopez "pedroluislopez (4 commits)")[![jelhan](https://avatars.githubusercontent.com/u/4965703?v=4)](https://github.com/jelhan "jelhan (4 commits)")[![zlodes](https://avatars.githubusercontent.com/u/1114387?v=4)](https://github.com/zlodes "zlodes (3 commits)")[![rekrios](https://avatars.githubusercontent.com/u/3911693?v=4)](https://github.com/rekrios "rekrios (3 commits)")[![half2me](https://avatars.githubusercontent.com/u/6759894?v=4)](https://github.com/half2me "half2me (2 commits)")[![MCMatters](https://avatars.githubusercontent.com/u/3148853?v=4)](https://github.com/MCMatters "MCMatters (2 commits)")[![GregPeden](https://avatars.githubusercontent.com/u/1343049?v=4)](https://github.com/GregPeden "GregPeden (2 commits)")[![mnrafg](https://avatars.githubusercontent.com/u/22196871?v=4)](https://github.com/mnrafg "mnrafg (2 commits)")[![daryledesilva](https://avatars.githubusercontent.com/u/4393436?v=4)](https://github.com/daryledesilva "daryledesilva (2 commits)")[![JeanLucEsser](https://avatars.githubusercontent.com/u/14908712?v=4)](https://github.com/JeanLucEsser "JeanLucEsser (1 commits)")[![benkingcode](https://avatars.githubusercontent.com/u/711700?v=4)](https://github.com/benkingcode "benkingcode (1 commits)")[![ben221199](https://avatars.githubusercontent.com/u/12856904?v=4)](https://github.com/ben221199 "ben221199 (1 commits)")[![KierynAnnette](https://avatars.githubusercontent.com/u/93209746?v=4)](https://github.com/KierynAnnette "KierynAnnette (1 commits)")[![dneykov](https://avatars.githubusercontent.com/u/5511034?v=4)](https://github.com/dneykov "dneykov (1 commits)")[![balaianu](https://avatars.githubusercontent.com/u/5259461?v=4)](https://github.com/balaianu "balaianu (1 commits)")[![malitta](https://avatars.githubusercontent.com/u/2572049?v=4)](https://github.com/malitta "malitta (1 commits)")[![m-bymike](https://avatars.githubusercontent.com/u/4008663?v=4)](https://github.com/m-bymike "m-bymike (1 commits)")

---

Tags

json-apilaravelphpjsonapilaraveljsonapiJSON-APIjsonapi.orgcloudcreativity

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cloudcreativity-laravel-json-api/health.svg)

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

###  Alternatives

[aimeos/aimeos-laravel

Cloud native, API first Laravel eCommerce package with integrated AI for ultra-fast online shops, marketplaces and complex B2B projects

8.6k214.7k3](/packages/aimeos-aimeos-laravel)[neomerx/json-api

Framework agnostic JSON API (jsonapi.org) implementation

7373.6M27](/packages/neomerx-json-api)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k12.2M45](/packages/knuckleswtf-scribe)[laravel-json-api/laravel

JSON:API for Laravel applications.

6371.4M15](/packages/laravel-json-api-laravel)[cloudcreativity/json-api-testing

PHPUnit test helpers to check JSON API documents.

141.6M3](/packages/cloudcreativity-json-api-testing)[nilportugues/laravel5-json-api

Laravel 5 JSON API Transformer Package

31232.4k1](/packages/nilportugues-laravel5-json-api)

PHPackages © 2026

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