PHPackages                             konekt/resource - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. konekt/resource

ActiveLibrary[HTTP &amp; Networking](/categories/http)

konekt/resource
===============

API Resources library to transform entities/models into REST API objects. Inspired by Laravel - usable in any Framework

0.4.0(1y ago)21.8kMITPHPPHP ^7.2|^8.0

Since Jun 6Pushed 1y ago3 watchersCompare

[ Source](https://github.com/artkonekt/resource)[ Packagist](https://packagist.org/packages/konekt/resource)[ RSS](/packages/konekt-resource/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (6)Used By (0)

API Resources for PHP
=====================

[](#api-resources-for-php)

[![Tests](https://camo.githubusercontent.com/e9554e818bfbdcc660350817622be93c8c1d7f59850ea703901a2c9660ea4d3e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6172746b6f6e656b742f7265736f757263652f74657374732e796d6c3f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://github.com/artkonekt/resource/actions?query=workflow%3Atests)[![Packagist Stable Version](https://camo.githubusercontent.com/ed41bf2676000165b344b6aec26cb022489a74f88688bba85594372c692164be/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b6f6e656b742f7265736f757263652e7376673f7374796c653d666c61742d737175617265266c6162656c3d737461626c65)](https://packagist.org/packages/konekt/resource)[![Packagist downloads](https://camo.githubusercontent.com/2bc0a4fc41495fd9ddee1361f347a81bdde00d1ee817bd9a4f5419cff2ed0dac/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b6f6e656b742f7265736f757263652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/konekt/resource)[![StyleCI](https://camo.githubusercontent.com/8669803d060f2f54e8a2f979b64b7035bfdae2f7f165fccce67d0b11b4467588/68747470733a2f2f7374796c6563692e696f2f7265706f732f3138363133313933342f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/186131934)[![MIT Software License](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

API Resources
-------------

[](#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](https://laravel.com/docs/5.8/eloquent-resources)concept. The goal is to make this approach available in non-Laravel applications as well.

Installation
------------

[](#installation)

using composer: `composer require konekt/resource`

Documentation
-------------

[](#documentation)

For detailed usage and examples go to the [Resource Documentation](https://konekt.dev/resource/) or refer to the markdown files in the `docs/` folder of this repo.

For the list of changes read the [Changelog](Changelog.md).

Framework Integrations
----------------------

[](#framework-integrations)

### Symfony

[](#symfony)

### Phalcon

[](#phalcon)

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance41

Moderate activity, may be stable

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.7% 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 ~511 days

Total

5

Last Release

488d ago

PHP version history (2 changes)0.1.0PHP ~7.2

0.2.0PHP ^7.2|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/9c398dd02c93ecf6aa344f367f5744aeb32b4c7bbc23b1b22e95336f45bf0d5a?d=identicon)[konekt](/maintainers/konekt)

---

Top Contributors

[![fulopattila122](https://avatars.githubusercontent.com/u/1162360?v=4)](https://github.com/fulopattila122 "fulopattila122 (42 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (1 commits)")

---

Tags

apirestresourcekonektartkonekt

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/konekt-resource/health.svg)

```
[![Health](https://phpackages.com/badges/konekt-resource/health.svg)](https://phpackages.com/packages/konekt-resource)
```

###  Alternatives

[aplus/mvc

Aplus Framework MVC Library

2601.6M3](/packages/aplus-mvc)[xendit/xendit-php

Xendit PHP SDK

189730.6k6](/packages/xendit-xendit-php)[angelleye/paypal-php-library

PHP wrapper for PayPal APIs

243440.9k](/packages/angelleye-paypal-php-library)[ezralazuardy/heimdall

Painless OAuth 2.0 Server for CodeIgniter 4

454.2k](/packages/ezralazuardy-heimdall)[nimbly/activeresource

Use a RESTful resource based API like a database

1043.5k](/packages/nimbly-activeresource)[phrest/api

REST API Package for Phalcon PHP

304.2k](/packages/phrest-api)

PHPackages © 2026

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