PHPackages                             mirko/t3customroutes - 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. mirko/t3customroutes

ActiveTypo3-cms-extension[API Development](/categories/api)

mirko/t3customroutes
====================

TYPO3 extension used to register custom api endpoints

0.0.2(3y ago)81.1k—0%GPL-2.0+PHPPHP &gt;=8.0.0

Since Jan 24Pushed 3y agoCompare

[ Source](https://github.com/Mirko-Solutions/t3customroutes)[ Packagist](https://packagist.org/packages/mirko/t3customroutes)[ Docs](https://github.com/Mirko-Solutions/t3customroutes)[ RSS](/packages/mirko-t3customroutes/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (14)Versions (5)Used By (0)

TYPO3 Extension "Custom Routes"
===============================

[](#typo3-extension-custom-routes)

- Authors: Mirko Team
- Email:
- Website: [mirko.in.ua](https://mirko.in.ua/)

The "Custom Routes" extension (`EXT:t3customroutes`) provide possibility to declare own api endpoints with own url

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

[](#installation)

```
composer require mirko/t3customroutes
```

Configuration
-------------

[](#configuration)

import route enhancer by adding following line on bottom of your site `config.yaml`.

```
imports:
  - { resource: "EXT:t3customroutes/Configuration/Routing/config.yaml" }
```

If you do not want to use import you can also manually add new route enhancer of type T3apiResourceEnhancer directly in your site configuration.

```
routeEnhancers:
  CustomRoutes:
    type: RoutesResourceEnhancer
```

Creating custom api endpoint
----------------------------

[](#creating-custom-api-endpoint)

Next step is to register custom routes in `EXT:{extkey}/Configuration/routes.yaml`

#### Creating Routes in YAML

[](#creating-routes-in-yaml)

```
# config/routes.yaml
blog_list:
  path: /blog
  # the controller value has the format 'controller_class::method_name'
  controller: App\Controller\BlogController::list
```

#### Matching HTTP Methods

[](#matching-http-methods)

By default, routes match any HTTP verb (`GET`, `POST`, `PUT`, etc.) Use the methods option to restrict the verbs each route should respond to:

```
# config/routes.yaml
api_post_show:
  path: /api/posts/{id}
  controller: App\Controller\BlogApiController::show
  methods: GET

api_post_edit:
  path: /api/posts/{id}
  controller: App\Controller\BlogApiController::edit
  methods: PUT
```

#### Method Parameters

[](#method-parameters)

```
class BlogController
{
    public function list(int $page)
    {
        return 'basic api route';
    }
}
```

```
# config/routes.yaml
blog_list:
  path: /blog/{page}
  controller: App\Controller\BlogController::list
  defaults:
    page: 1

blog_show:
# ...
```

You may also need to configure dependency injection in your extensions

[TYPO3 main documentation](https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ApiOverview/DependencyInjection/Index.html)

### Contributing

[](#contributing)

You can contribute by making a **pull request** to the master branch of this repository.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~8 days

Total

2

Last Release

1201d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/39d359dd31be8c7e27b3916a2e8ab0ef9198cb1a99f7a5472847a61f86a9c5d1?d=identicon)[mirko](/maintainers/mirko)

---

Top Contributors

[![Runik51ua](https://avatars.githubusercontent.com/u/50318376?v=4)](https://github.com/Runik51ua "Runik51ua (6 commits)")

---

Tags

apiTYPO3 CMStypo3

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/mirko-t3customroutes/health.svg)

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

###  Alternatives

[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[nelmio/api-doc-bundle

Generates documentation for your REST API from attributes

2.3k63.6M233](/packages/nelmio-api-doc-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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