Skip to content
API Resources for PHP
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
src
tests
.gitignore
.styleci.yml
.travis.yml
Changelog.md
LICENSE.md
README.md
composer.json
phpunit.xml

README.md

API Resources for PHP

Travis Build Status Packagist Stable Version Packagist downloads StyleCI MIT Software License

API Resources

When building an HTTP based API, you often need a transformation layer that sits between your models and the JSON (or XML, etc) responses that are actually returned to API consumers.

The API resource classes allow you to transform your models into HTTP Responses (JSON, XML, etc).

This project was inspired by the Laravel API Resources concept. The goal is to make this approach available in non-Laravel applications as well.

Installation

using composer: composer require konekt/resource

Documentation

For detailed usage and examples go to the Resource Documentation or refer to the markdown files in the docs/ folder of this repo.

For the list of changes read the Changelog.

Framework Integrations

Symfony

Phalcon

You can’t perform that action at this time.