PHPackages                             ali1/cakephp-param-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. [Framework](/categories/framework)
4. /
5. ali1/cakephp-param-converter

ActiveCakephp-plugin[Framework](/categories/framework)

ali1/cakephp-param-converter
============================

Param converter for CakePHP Routing

1.0.2(5y ago)019MITPHPPHP &gt;=7.2

Since Apr 26Pushed 2y agoCompare

[ Source](https://github.com/Ali1/cakephp-param-converter)[ Packagist](https://packagist.org/packages/ali1/cakephp-param-converter)[ RSS](/packages/ali1-cakephp-param-converter/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (3)Dependencies (7)Versions (8)Used By (0)

Param Converter
===============

[](#param-converter)

CakePHP v4.x plugin for converting request parameters to objects. These objects replace the original parameters before dispatching the controller action and hence they can be injected as controller method arguments.

Heavily inspired by [Symfony ParamConverter](https://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/annotations/converters.html)

Test currently need updated since re-writing code with Middleware.

Install
-------

[](#install)

Using Composer:

```
composer require ali1/cakephp-param-converter

```

You then need to load the plugin. You can use the shell command:

```
bin/cake plugin load ParamConverter

```

Usage
-----

[](#usage)

To use, start using typed arguments in controller methods.

Entity and FrozenDatetime examples

```
