PHPackages                             apitte/presenter - 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. [API Development](/categories/api)
4. /
5. apitte/presenter

Abandoned → [contributte/apitte](/?search=contributte%2Fapitte)ArchivedLibrary[API Development](/categories/api)

apitte/presenter
================

ApiPresenter for Nette framework

v0.8.0(4y ago)7136.2k↓42.4%4MITPHPPHP &gt;=7.3

Since Jan 8Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/contributte/apitte-presenter)[ Packagist](https://packagist.org/packages/apitte/presenter)[ Docs](https://github.com/apitte/presenter)[ Fund](https://contributte.org/partners.html)[ GitHub Sponsors](https://github.com/f3l1x)[ RSS](/packages/apitte-presenter/feed)WikiDiscussions master Synced yesterday

READMEChangelog (9)Dependencies (9)Versions (11)Used By (0)

[![](https://camo.githubusercontent.com/1afcc54714d69c596fd00e4154aafa48d981e18a44b762c0a4a1dfdb6ea4696b/68747470733a2f2f686561746261646765722e76657263656c2e6170702f6769746875622f726561646d652f636f6e74726962757474652f6170697474652d70726573656e7465722f3f646570726563617465643d31)](https://camo.githubusercontent.com/1afcc54714d69c596fd00e4154aafa48d981e18a44b762c0a4a1dfdb6ea4696b/68747470733a2f2f686561746261646765722e76657263656c2e6170702f6769746875622f726561646d652f636f6e74726962757474652f6170697474652d70726573656e7465722f3f646570726563617465643d31)

 [![](https://camo.githubusercontent.com/a8b1cd856d7d396fdebbe46947cc3507490acc267a02361e5e53bb7b820c95c3/68747470733a2f2f62616467656e2e6e65742f62616467652f737570706f72742f6769747465722f6379616e)](https://bit.ly/ctteg) [![](https://camo.githubusercontent.com/86d6416fc04f8bcc3daa7bf881526b9953b9726b1164d05c157c8713e3a73418/68747470733a2f2f62616467656e2e6e65742f62616467652f737570706f72742f666f72756d2f79656c6c6f77)](https://bit.ly/cttfo) [![](https://camo.githubusercontent.com/5d170ab94e6d594609561e16fe0f9e4293968fbd4dfcfafc5e11efc1415ef09c/68747470733a2f2f62616467656e2e6e65742f62616467652f73706f6e736f722f646f6e6174696f6e732f463936383534)](https://contributte.org/partners.html)

 Website 🚀 [contributte.org](https://contributte.org) | Contact 👨🏻‍💻 [f3l1x.io](https://f3l1x.io) | Twitter 🐦 [@contributte](https://twitter.com/contributte)

Disclaimer
----------

[](#disclaimer)

⚠️This project is no longer being maintained.Composer[`apitte/presenter`](https://packagist.org/packages/apitte/presenter)Version[![](https://camo.githubusercontent.com/92446bc2ffda48cf427532c94093ae471c616933fe115c7500255c06d252882e/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f762f6170697474652f70726573656e746572)](https://camo.githubusercontent.com/92446bc2ffda48cf427532c94093ae471c616933fe115c7500255c06d252882e/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f762f6170697474652f70726573656e746572)PHP[![](https://camo.githubusercontent.com/5c8aa884ab3b07cead3ddd91616160060ab6a5fae4a461b4e6ecd83f109276b1/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f7068702f6170697474652f70726573656e746572)](https://camo.githubusercontent.com/5c8aa884ab3b07cead3ddd91616160060ab6a5fae4a461b4e6ecd83f109276b1/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f7068702f6170697474652f70726573656e746572)License[![](https://camo.githubusercontent.com/5192d8e6ea1060d6133cca1eeb73a0a3b5d073216a7fc5626d616cf3a6c26840/68747470733a2f2f62616467656e2e6e65742f6769746875622f6c6963656e73652f636f6e74726962757474652f6170697474652d70726573656e746572)](https://camo.githubusercontent.com/5192d8e6ea1060d6133cca1eeb73a0a3b5d073216a7fc5626d616cf3a6c26840/68747470733a2f2f62616467656e2e6e65742f6769746875622f6c6963656e73652f636f6e74726962757474652f6170697474652d70726573656e746572)About
-----

[](#about)

This package integrated [Apitte](https://github.com/apitte/core) into [nette/routing](https://github.com/nette/routing) with a presenter.

> **Note:** Usage of this package was not recommended as it required unnecessary conversion of nette request into psr-7 request. It also added headers from nette response configuration which were usually meant for UI, not an API.

> The presenter was incompatible with [middlewares](https://github.com/apitte/middlewares).

Usage
-----

[](#usage)

To install the latest version of `apitte/presenter` use [Composer](https://getcomposer.org).

```
composer require apitte/presenter
```

Setup
-----

[](#setup)

First of all, setup [core](https://github.com/apitte/core) package.

Install `apitte/presenter`

```
composer require apitte/presenter
```

Configure presenter mapping

```
application:
    mapping:
        Apitte: Apitte\Presenter\*Presenter
```

Prepend `ApiRoute` to your router. Therefore you can reach your API at `/api`.

```
namespace App\Router;

use Apitte\Presenter\ApiRoute;
use Nette\Application\IRouter;
use Nette\StaticClass;

class RouterFactory
{
    use StaticClass;

    public static function createRouter(): IRouter
    {
        $router = new RouteList;
        $router[] = new ApiRoute('api');
        $router[] = new Route('/', 'Homepage:default');
        return $router;
    }
}
```

In `index.php` drop `Apitte\Core\Application\IApplication` and keep `Nette\Application\Application` only.

Version
-------

[](#version)

StateVersionBranchNettePHPstable`^0.8``master`3.0+`>=7.3`stable`^0.5``master`2.4`>=7.1`Development
-----------

[](#development)

This package was maintained by these authors.

[ ![](https://avatars2.githubusercontent.com/u/538058?v=3&s=80)](https://github.com/f3l1x)---

Consider to [support](https://contributte.org/partners.html) **contributte** development team. Also thank you for using this package.

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance46

Moderate activity, may be stable

Popularity38

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~167 days

Recently: every ~222 days

Total

9

Last Release

1760d ago

PHP version history (5 changes)v0.1PHP &gt;=5.6

v0.4PHP &gt;= 7.1

v0.6.0PHP ^7.2

v0.7.0PHP &gt;=7.2

v0.8.0PHP &gt;=7.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/538058?v=4)[Milan Šulc](/maintainers/f3l1x)[@f3l1x](https://github.com/f3l1x)

---

Top Contributors

[![f3l1x](https://avatars.githubusercontent.com/u/538058?v=4)](https://github.com/f3l1x "f3l1x (24 commits)")[![mabar](https://avatars.githubusercontent.com/u/20974277?v=4)](https://github.com/mabar "mabar (18 commits)")[![petrparolek](https://avatars.githubusercontent.com/u/6066243?v=4)](https://github.com/petrparolek "petrparolek (4 commits)")[![kralmichal](https://avatars.githubusercontent.com/u/1733478?v=4)](https://github.com/kralmichal "kralmichal (2 commits)")[![vody105](https://avatars.githubusercontent.com/u/22433893?v=4)](https://github.com/vody105 "vody105 (2 commits)")[![josefbenjac](https://avatars.githubusercontent.com/u/6731626?v=4)](https://github.com/josefbenjac "josefbenjac (1 commits)")[![vhelmer](https://avatars.githubusercontent.com/u/12649540?v=4)](https://github.com/vhelmer "vhelmer (1 commits)")[![woytam](https://avatars.githubusercontent.com/u/12713483?v=4)](https://github.com/woytam "woytam (1 commits)")

---

Tags

apittehttpnettenette-frameworkpresenterapinette

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/apitte-presenter/health.svg)

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

###  Alternatives

[tomaj/nette-api

Nette api

36273.2k8](/packages/tomaj-nette-api)[contributte/comgate

Comgate Payment Gateway for Nette Framework

20847.6k1](/packages/contributte-comgate)[kelemen/api-nette

Api for Nette framework

181.9k](/packages/kelemen-api-nette)

PHPackages © 2026

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