All Projects → json-api-php → Json Api

json-api-php / Json Api

Licence: mit
Implementation of JSON API in PHP 7

Projects that are alternatives of or similar to Json Api

Json Api Dart
JSON:API client for Dart/Flutter
Stars: ✭ 53 (-69.01%)
Mutual labels:  json-api, jsonapi, hacktoberfest, json
Jsonapi Utils
Build JSON API-compliant APIs on Rails with no (or less) learning curve.
Stars: ✭ 191 (+11.7%)
Mutual labels:  json-api, jsonapi, json
Jsonapi Rails
Rails gem for fast jsonapi-compliant APIs.
Stars: ✭ 242 (+41.52%)
Mutual labels:  json-api, jsonapi, json
Jsonapi Rb
Efficiently produce and consume JSON API documents.
Stars: ✭ 219 (+28.07%)
Mutual labels:  json-api, jsonapi, json
Laravel5 Jsonapi
Laravel 5 JSON API Transformer Package
Stars: ✭ 313 (+83.04%)
Mutual labels:  json-api, jsonapi, json
Redux Json Api
Redux actions, action creators and reducers to make life with JSON APIs a breeze.
Stars: ✭ 374 (+118.71%)
Mutual labels:  json-api, jsonapi, hacktoberfest
Jsonapi parameters
Rails-way to consume JSON:API input
Stars: ✭ 50 (-70.76%)
Mutual labels:  json-api, jsonapi, json
Symfony Jsonapi
JSON API Transformer Bundle for Symfony 2 and Symfony 3
Stars: ✭ 114 (-33.33%)
Mutual labels:  json-api, jsonapi, json
Javascript/Typescript library mapping objects and their interrelations to JSON API, with a clean, fluent ActiveRecord-like (e.g. similar to Laravel's Eloquent) syntax for creating, retrieving, updating and deleting model objects.
Stars: ✭ 149 (-12.87%)
Mutual labels:  json-api, jsonapi, json
A reliable, user-friendly Plain Text Accounting tool with command line, terminal and web interfaces.
Stars: ✭ 1,887 (+1003.51%)
Mutual labels:  hacktoberfest, library
Yii2 Json Api
Implementation of JSON API specification for the Yii framework
Stars: ✭ 139 (-18.71%)
Mutual labels:  json-api, json
Microbenchmarking for Modern C++
Stars: ✭ 140 (-18.13%)
Mutual labels:  json, library
📦 Package configurations - The #1 free and open source CDN built to make life easier for developers.
Stars: ✭ 139 (-18.71%)
Mutual labels:  hacktoberfest, json
Hardware accelerated, controller and TV oriented UI library for PC and Nintendo Switch (libnx).
Stars: ✭ 135 (-21.05%)
Mutual labels:  hacktoberfest, library
Complete Pipedrive API client for PHP
Stars: ✭ 138 (-19.3%)
Mutual labels:  hacktoberfest, library
Dumpling is a fast, easy-to-use tool written by Go for dumping data from the database(MySQL, TiDB...) to local/cloud(S3, GCP...) in multifarious formats(SQL, CSV...).
Stars: ✭ 134 (-21.64%)
Mutual labels:  hacktoberfest, library
💨 Simple yet powerful file-based mock server with recording abilities
Stars: ✭ 142 (-16.96%)
Mutual labels:  hacktoberfest, json
Data formatter that creates simplified objects from JSON or stored reduxObject, creates JSON from the same simplified objects (in according with JSON API specification)
Stars: ✭ 144 (-15.79%)
Mutual labels:  json-api, jsonapi
Your Own Url Shortner Without any fancy server side processing and support for custom url , which can even be hosted on GitHub Pages
Stars: ✭ 131 (-23.39%)
Mutual labels:  hacktoberfest, json
A standard library for microservices.
Stars: ✭ 142 (-16.96%)
Mutual labels:  json-api, json

JSON API spec implemented in PHP 7. Immutable

The goal of this library is to ensure strict validity of JSON API documents being produced.


    "data": {
        "type": "articles",
        "id": "1",
        "attributes": {
            "title": "Rails is Omakase"
        "relationships": {
            "author": {
                "data": {
                    "type": "people",
                    "id": "9"
                "links": {
                    "self": "/articles/1/relationships/author",
                    "related": "/articles/1/author"


use JsonApiPhp\JsonApi\Attribute;
use JsonApiPhp\JsonApi\DataDocument;
use JsonApiPhp\JsonApi\Link\RelatedLink;
use JsonApiPhp\JsonApi\Link\SelfLink;
use JsonApiPhp\JsonApi\ResourceIdentifier;
use JsonApiPhp\JsonApi\ResourceObject;
use JsonApiPhp\JsonApi\ToOne;

echo json_encode(
    new DataDocument(
        new ResourceObject(
            new Attribute('title', 'Rails is Omakase'),
            new ToOne(
                new ResourceIdentifier('author', '9'),
                new SelfLink('/articles/1/relationships/author'),
                new RelatedLink('/articles/1/author')


composer require json-api-php/json-api


First, take a look at the examples. All of them are runnable.

The library API and use-cases are expressed in a comprehensive suite of tests.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].