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

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

apie/type-converter
===================

Converts objects from specific type to an other type.

1.6.2(9mo ago)0105.0k3MITPHPPHP &gt;=8.3CI passing

Since May 21Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/apie-lib/type-converter)[ Packagist](https://packagist.org/packages/apie/type-converter)[ RSS](/packages/apie-type-converter/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependencies (3)Versions (18)Used By (3)

[![](/docs/apie-logo.svg)](/docs/apie-logo.svg)

Apie type converter
===================

[](#apie-type-converter)

[![Latest Stable Version](https://camo.githubusercontent.com/169ba8f05696e7b08abd6865ffc0da1007467779922d1091449d0dc156a0096b/68747470733a2f2f706f7365722e707567782e6f72672f617069652f747970652d636f6e7665727465722f76)](https://packagist.org/packages/apie/type-converter) [![Total Downloads](https://camo.githubusercontent.com/e92197fa445afef90fd9fde2a839714be847ad232b6d0bc0e2ddfe420df6080c/68747470733a2f2f706f7365722e707567782e6f72672f617069652f747970652d636f6e7665727465722f646f776e6c6f616473)](https://packagist.org/packages/apie/type-converter) [![Latest Unstable Version](https://camo.githubusercontent.com/b11fb3495774a938283f868934e99dd314ab2b4b9e586f31ff2c551306cc93db/68747470733a2f2f706f7365722e707567782e6f72672f617069652f747970652d636f6e7665727465722f762f756e737461626c65)](https://packagist.org/packages/apie/type-converter) [![License](https://camo.githubusercontent.com/f841ff1ca9661b85f0d2e5542fbe92968db5f520cf7d0cd63390502cffb58938/68747470733a2f2f706f7365722e707567782e6f72672f617069652f747970652d636f6e7665727465722f6c6963656e7365)](https://packagist.org/packages/apie/type-converter) [![PHP Version Require](https://camo.githubusercontent.com/779c5dcac9361173aeb177b44d0ded33a2033fa28c7d751050dbe414f38c3b3f/68747470733a2f2f706f7365722e707567782e6f72672f617069652f747970652d636f6e7665727465722f726571756972652f706870)](https://packagist.org/packages/apie/type-converter) [![Code coverage](./coverage_badge.svg)](https://github.com/apie-lib/type-converter/actions/workflows/php.yml) [![Donate](https://camo.githubusercontent.com/648ad6f048733f167bf65e11a4fd759eef14da88db61ad078bbd5ddea5d57133/68747470733a2f2f7777772e70617970616c6f626a656374732e636f6d2f656e5f55532f692f62746e2f62746e5f646f6e6174655f4c472e676966)](https://www.paypal.com/donate/?hosted_button_id=J4CAFUAW7VTAY)

Apie is a suite of composer packages to work with domain objects. It tries to aim to follow a Domain-objects-first approach and not a database first approach that you find in many PHP frameworks nowadays.

This type converter package is written outside the monorepo and provides a simple tooling to convert objects into other objects.

Usage
=====

[](#usage)

Easiest usage:

```
