PHPackages                             tandrewcl/api-request-convert - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. tandrewcl/api-request-convert

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

tandrewcl/api-request-convert
=============================

Convert request content to DTO classes

v1.1.0(9mo ago)0507↓50%MITPHPPHP &gt;=8.0.2

Since Aug 10Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/ATernovtsii/api-request-convert)[ Packagist](https://packagist.org/packages/tandrewcl/api-request-convert)[ RSS](/packages/tandrewcl-api-request-convert/feed)WikiDiscussions main Synced 1mo ago

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

Request Convert Bundle
======================

[](#request-convert-bundle)

About bundle
------------

[](#about-bundle)

This bundle is a simple solution to convert request to DTO classes

Installation
============

[](#installation)

Step 1: Download the Bundle
---------------------------

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
    $ composer require tandrewcl/api-request-convert
```

This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

Step 2: Config and Usage
------------------------

[](#step-2-config-and-usage)

Thanks for Symfony flex Bundle is auto enabled in config/bundles.php

```
...
use tandrewcl\ApiRequestConvertBundle\DTO\ResolvableInputDTOInterface;
...

class LoginDTO implements ResolvableInputDTOInterface
{
    #[Assert\NotBlank]
    #[Assert\Length(max: 16)]
    public ?string $login = null;

    #[Assert\NotBlank]
    #[Assert\Length(max: 16)]
    public ?string $password = null;

    public function handleRequest(Request $request): void
    {
        $params = $request->request->all();
        $this->login = $params['login'] ?? null;
        $this->password = $params['password'] ?? null;
    }
}
```

```
...
use tandrewcl\ApiResponseConvertBundle\Handler\ResponseHandler;
...

class FooController
{
    public function loginAction(LoginDTO $loginDTO): Response
    {
        ...
        $authResult = $authService->auth($loginDTO->login, $loginDTO->password);
        ...
    }
```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance57

Moderate activity, may be stable

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Total

4

Last Release

287d ago

Major Versions

v0.1.0 → v1.02023-02-10

### Community

Maintainers

![](https://www.gravatar.com/avatar/02494ea4e74d55bc7ba43f00e7721b48849239910705b97837205ac0332e1c7f?d=identicon)[ATernovtsii](/maintainers/ATernovtsii)

---

Top Contributors

[![ATernovtsii](https://avatars.githubusercontent.com/u/13164912?v=4)](https://github.com/ATernovtsii "ATernovtsii (7 commits)")

---

Tags

request converter. json request convert. symfony request converter. request to DTO

### Embed Badge

![Health badge](/badges/tandrewcl-api-request-convert/health.svg)

```
[![Health](https://phpackages.com/badges/tandrewcl-api-request-convert/health.svg)](https://phpackages.com/packages/tandrewcl-api-request-convert)
```

###  Alternatives

[symfony/ux-toggle-password

Toggle visibility of password inputs for Symfony Forms

26508.0k5](/packages/symfony-ux-toggle-password)[spomky-labs/pwa-bundle

Progressive Web App Manifest Generator Bundle for Symfony.

6144.4k1](/packages/spomky-labs-pwa-bundle)[symfony/ux-cropperjs

Cropper.js integration for Symfony

19280.3k3](/packages/symfony-ux-cropperjs)[leapt/core-bundle

Symfony LeaptCoreBundle

2529.1k4](/packages/leapt-core-bundle)[symfony/ux-notify

Native notification integration for Symfony

1274.7k](/packages/symfony-ux-notify)[numero2/contao-storelocator

Contao Plugin for managing stores (or in common address data) and providing a frontend-search based on geo data

121.5k](/packages/numero2-contao-storelocator)

PHPackages © 2026

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