PHPackages                             uzdevid/converter - 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. uzdevid/converter

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

uzdevid/converter
=================

Property hydrator

1.0.1(1y ago)0413MITPHPPHP &gt;=8.1

Since Mar 7Pushed 1y agoCompare

[ Source](https://github.com/uzdevid/converter)[ Packagist](https://packagist.org/packages/uzdevid/converter)[ RSS](/packages/uzdevid-converter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (3)Used By (0)

 [ ![Yii](https://private-user-images.githubusercontent.com/167644693/420289040-e29daa5f-ac8f-47aa-b927-40400a6b5626.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzQ0MjA5NTMsIm5iZiI6MTc3NDQyMDY1MywicGF0aCI6Ii8xNjc2NDQ2OTMvNDIwMjg5MDQwLWUyOWRhYTVmLWFjOGYtNDdhYS1iOTI3LTQwNDAwYTZiNTYyNi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwMzI1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDMyNVQwNjM3MzNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02NzA4YmE3NzRmMjhmZjkzNjRiNWE4Yzg4NjAyY2FkMjg2MmFmMGYwZTBmNjZjNGFiMmQ0NmIyM2U2ODliZmI0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.56UGWq-SpcFO_w8knrQgScs8nHsQmp5Q_rVZfEF4_RU) ](https://github.com/uzdevid)

Object converter
================

[](#object-converter)

[![Latest Stable Version](https://camo.githubusercontent.com/3584cb763b88261a1b6e3c4ed842ac45e12ec6691375c972909be406eef4f4fb/68747470733a2f2f706f7365722e707567782e6f72672f757a64657669642f636f6e7665727465722f76)](https://packagist.org/packages/uzdevid/converter)[![Total Downloads](https://camo.githubusercontent.com/c424cd9096eb289635d86e1043daf6b636f2c3528c2df8d5e2def6d123645a8c/68747470733a2f2f706f7365722e707567782e6f72672f757a64657669642f636f6e7665727465722f646f776e6c6f616473)](https://packagist.org/packages/uzdevid/converter)[![Code Coverage](https://camo.githubusercontent.com/4be3e7b5968730399b8094a48980d75b3a5f46a920f81742dcd53f2c8ab1c10a/68747470733a2f2f636f6465636f762e696f2f67682f757a64657669642f636f6e7665727465722f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/uzdevid/converter)[![Mutation testing badge](https://camo.githubusercontent.com/e27c45d29d1b4234542d92f3864185ad831c91cefb3f1478892124b274e19faf/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d253246796969736f667425324676616c696461746f722532466d6173746572)](https://dashboard.stryker-mutator.io/reports/github.com/uzdevid/converter/master)[![type-coverage](https://camo.githubusercontent.com/bdc08463ce902db5e6434f1baa9dfa8cd578e1e819e1955cbbd4141db7e28af5/68747470733a2f2f73686570686572642e6465762f6769746875622f757a64657669642f636f6e7665727465722f636f7665726167652e737667)](https://shepherd.dev/github/uzdevid/converter)[![psalm-level](https://camo.githubusercontent.com/816bd92e9e1c5143be4568525a3f8aa83aec4a87efdeb728ce952b5cf954c29c/68747470733a2f2f73686570686572642e6465762f6769746875622f757a64657669642f636f6e7665727465722f6c6576656c2e737667)](https://shepherd.dev/github/uzdevid/converter)

Requirements
------------

[](#requirements)

- PHP 8.1 or higher.

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

[](#installation)

The package could be installed with [Composer](https://getcomposer.org):

```
composer require uzdevid/converter
```

General usage
-------------

[](#general-usage)

To convert existing object to other object:

```
use Yiisoft\Hydrator\Hydrator;
use UzDevid\Converter\Converter;

$hydrator = new Hydrator();
$converter = new Converter($hydrator);

$converter->convert(CarDto::class, $carModel);
```

To convert array to object

```
use Yiisoft\Hydrator\Hydrator;
use UzDevid\Converter\Converter;

$hydrator = new Hydrator();
$converter = new Converter($hydrator);

$converter->convert(CarDto::class, ['name' => 'Ferrari']);
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance47

Moderate activity, may be stable

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity47

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

Total

2

Last Release

390d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/104216283?v=4)[UzDevid](/maintainers/uzdevid)[@uzdevid](https://github.com/uzdevid)

---

Top Contributors

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

---

Tags

phpconverterextension

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/uzdevid-converter/health.svg)

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

###  Alternatives

[rubix/tensor

A library and extension that provides objects for scientific computing in PHP.

2751.4M5](/packages/rubix-tensor)

PHPackages © 2026

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