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

ActiveLibrary[API Development](/categories/api)

premiervirtual/laravel-json-api
===============================

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

v6.0.0(3y ago)03.8kApache-2.0PHPPHP ^8.1CI failing

Since Oct 3Pushed 2y agoCompare

[ Source](https://github.com/TalentInc/laravel-json-api)[ Packagist](https://packagist.org/packages/premiervirtual/laravel-json-api)[ Docs](https://github.com/cloudcreativity/laravel-json-api)[ RSS](/packages/premiervirtual-laravel-json-api/feed)WikiDiscussions main Synced 3d ago

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

[![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)

**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, please use the [new package `laravel-json-api/laravel` instead.](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 .

Tutorial and Documentation
--------------------------

[](#tutorial-and-documentation)

Want a tutorial to get started? Read the [*How to JSON:API* Laravel tutorial.](https://howtojsonapi.com/laravel.html)

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`^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

40

—

FairBetter than 86% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity88

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 93% 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 ~36 days

Recently: every ~16 days

Total

88

Last Release

797d ago

Major Versions

v2.2.0 → v3.0.02020-09-09

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

PHP version history (9 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

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1170038?v=4)[Dmytro Zasyadko](/maintainers/segoddnja)[@segoddnja](https://github.com/segoddnja)

---

Top Contributors

[![lindyhopchris](https://avatars.githubusercontent.com/u/4464333?v=4)](https://github.com/lindyhopchris "lindyhopchris (802 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)")[![segoddnja](https://avatars.githubusercontent.com/u/1170038?v=4)](https://github.com/segoddnja "segoddnja (4 commits)")[![rekrios](https://avatars.githubusercontent.com/u/3911693?v=4)](https://github.com/rekrios "rekrios (3 commits)")[![zlodes](https://avatars.githubusercontent.com/u/1114387?v=4)](https://github.com/zlodes "zlodes (2 commits)")[![daryledesilva](https://avatars.githubusercontent.com/u/4393436?v=4)](https://github.com/daryledesilva "daryledesilva (2 commits)")[![GregPeden](https://avatars.githubusercontent.com/u/1343049?v=4)](https://github.com/GregPeden "GregPeden (2 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)")[![mnrafg](https://avatars.githubusercontent.com/u/22196871?v=4)](https://github.com/mnrafg "mnrafg (2 commits)")[![its-schmii](https://avatars.githubusercontent.com/u/4619662?v=4)](https://github.com/its-schmii "its-schmii (1 commits)")[![JeanLucEsser](https://avatars.githubusercontent.com/u/14908712?v=4)](https://github.com/JeanLucEsser "JeanLucEsser (1 commits)")[![dneykov](https://avatars.githubusercontent.com/u/5511034?v=4)](https://github.com/dneykov "dneykov (1 commits)")[![chris-doehring](https://avatars.githubusercontent.com/u/6341536?v=4)](https://github.com/chris-doehring "chris-doehring (1 commits)")[![benkingcode](https://avatars.githubusercontent.com/u/711700?v=4)](https://github.com/benkingcode "benkingcode (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

jsonapilaraveljsonapiJSON-APIjsonapi.orgcloudcreativity

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[cloudcreativity/laravel-json-api

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

7851.1M5](/packages/cloudcreativity-laravel-json-api)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k14.2M62](/packages/knuckleswtf-scribe)[aimeos/aimeos-laravel

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

8.7k225.1k5](/packages/aimeos-aimeos-laravel)[laravel/octane

Supercharge your Laravel application's performance.

4.0k26.6M223](/packages/laravel-octane)[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)[neomerx/json-api

Framework agnostic JSON API (jsonapi.org) implementation

7433.7M30](/packages/neomerx-json-api)

PHPackages © 2026

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