# fractal-serializer-jsonapi **Repository Path**: mirrors_thephpleague/fractal-serializer-jsonapi ## Basic Information - **Project Name**: fractal-serializer-jsonapi - **Description**: Fractal's JSON:API serializer - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-18 - **Last Updated**: 2025-12-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Fractal Serializer JSON:API [![Latest Version](https://img.shields.io/github/release/thephpleague/fractal-serializer-jsonapi.svg?style=flat-square)](https://github.com/thephpleague/fractal-serializer-jsonapi/releases) [![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE) [![Build Status](https://img.shields.io/travis/thephpleague/fractal-serializer-jsonapi/master.svg?style=flat-square&label=tests)](https://travis-ci.org/thephpleague/fractal-serializer-jsonapi) [![Build Status](https://img.shields.io/circleci/build/gh/thephpleague/fractal-serializer-jsonapi/master.svg?style=flat-square&label=code+style)](https://circleci.com/gh/thephpleague/fractal-serializer-jsonapi) [![Coverage Status](https://img.shields.io/scrutinizer/coverage/g/thephpleague/fractal-serializer-jsonapi/master.svg?style=flat-square)](https://scrutinizer-ci.com/g/thephpleague/fractal-serializer-jsonapi/code-structure) [![Quality Score](https://img.shields.io/scrutinizer/g/thephpleague/fractal-serializer-jsonapi/master.svg?style=flat-square)](https://scrutinizer-ci.com/g/thephpleague/fractal-serializer-jsonapi) [![Total Downloads](https://img.shields.io/packagist/dt/league/fractal-serializer-jsonapi.svg?style=flat-square)](https://packagist.org/packages/league/fractal-serializer-jsonapi) Fractal provides a presentation and transformation layer for complex data output, the like found in RESTful APIs, and works really well with JSON. Think of this as a view layer for your JSON/YAML/etc. When building an API it is common for people to just grab stuff from the database and pass it to `json_encode()`. This might be passable for "trivial" APIs but if they are in use by the public, or used by mobile applications then this will quickly lead to inconsistent output. ## Install Via Composer ``` bash $ composer require league/fractal-serializer-jsonapi ``` ## Requirements The following versions of PHP are supported by this version. * PHP 7.2 * PHP 7.3 * PHP 7.4 * HHVM ## Documentation Fractal has [full documentation](http://fractal.thephpleague.com), powered by [Jekyll](http://jekyllrb.com/). Contribute to this documentation in the [gh-pages branch](https://github.com/thephpleague/fractal/tree/gh-pages/). ## License The MIT License (MIT). Please see [License File](https://github.com/thephpleague/fractal/blob/master/LICENSE) for more information.