Laravel Json Api

JSON API (jsonapi.org) package for Laravel applications.
Alternatives To Laravel Json Api
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Polr4,739
16 days ago209gpl-2.0PHP
:aerial_tramway: A modern, powerful, and robust URL shortener
Eloquent Json Relations8471417 days ago28March 26, 20227mitPHP
Laravel Eloquent relationships with JSON keys
Laravel Schemaless Attributes83029379 months ago25December 06, 2021mitPHP
Add schemaless attributes to Eloquent models
Laravel Json Api7561548 months ago74June 25, 202225apache-2.0PHP
JSON API (jsonapi.org) package for Laravel applications.
Laravel Api Response Builder68441a month ago66February 13, 20227mitPHP
Builds nice, normalized and easy to consume REST JSON responses for Laravel powered APIs.
Laravel Langman Gui507413 years ago7October 05, 201725mitPHP
A GUI for managing JSON translation files in your laravel projects.
Laravel Json Api Paginate50319216 months ago20January 11, 2022mitPHP
A paginator that plays nice with the JSON API spec
Stream Parser432
313 hours ago13March 02, 20226mitPHP
⚡ PHP7 / Laravel Multi-format Streaming Parser
Fractalistic366275133 months ago24April 21, 2022mitPHP
A framework agnostic, developer friendly wrapper around Fractal
Laravel5 Jsonapi3101016 years ago53August 06, 201642mitPHP
Laravel 5 JSON API Transformer Package
Alternatives To Laravel Json Api
Select To Compare


Alternative Project Comparisons
Readme

Tests

cloudcreativity/laravel-json-api

Status

DO NOT USE THIS PACKAGE FOR NEW PROJECTS - USE 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 and the code is now developed under the Laravel JSON:API Github organisation.

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.

Introduction

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

This package provides all the capabilities you need to add JSON API 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?

From 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 http://jsonapi.org.

Documentation

Full package documentation is available on Read the Docs.

Slack

Join the Laravel JSON:API community on Slack.

Laravel Versions

Laravel This 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 when upgrading between major or pre-release versions.

License

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

Installation

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

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.

Popular Laravel Projects
Popular Json Projects
Popular Frameworks Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Php
Laravel
Json
Pagination
Json Api
Lumen