GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - contributte/apitte-presenter: 💀 [DISCONTINUED] PSR-7 for Nette\Presenters with Apitte stack

This repository was archived by the owner on Dec 9, 2025. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

55 Commits
55 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
src
src
 
 
tests
tests
 
 
.editorconfig
.editorconfig
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
composer.json
composer.json
 
 
phpstan.neon
phpstan.neon
 
 
ruleset.xml
ruleset.xml
 
 

Repository files navigation

Website 🚀 contributte.org | Contact 👨🏻‍💻 f3l1x.io | Twitter 🐦 @contributte

Disclaimer

⚠️ This project is no longer being maintained.
Composer apitte/presenter
Version
PHP
License

About

This package integrated Apitte into 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.

Usage

To install the latest version of apitte/presenter use Composer.

composer require apitte/presenter

Setup

First of all, setup 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 <project>/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('<presenter>/<action>', 'Homepage:default');
        return $router;
    }
}

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

Version

State Version Branch Nette PHP
stable ^0.8 master 3.0+ >=7.3
stable ^0.5 master 2.4 >=7.1

Development

This package was maintained by these authors.


Consider to support contributte development team. Also thank you for using this package.

About

💀 [DISCONTINUED] 🌻 PSR-7 for Nette\Presenters with Apitte stack

contributte.org/packages/apitte/presenter.html

Topics

apittehttpnettenette-frameworkpresenter

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

6 stars

Watchers

1 watching

Forks

4 forks
Report repository

Releases

Sponsor this project

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.