How do I add a custom Doctrine data type to SlimPHP Framwork?

I need to add tinyint type to Doctrine.
Many examples for Symfony but no examples for SlimPHP…

What have you tried so far?

Hello,
You can define a custom mapping type (TinyIntType) that extends Doctrine\DBAL\Types\Type, register it in your SlimPHP setup to handle conversions between PHP and database values, and use it in your entity definitions.