PHPackages                             softius/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. softius/cakephp-param-converter

ActiveCakephp-plugin[Utility &amp; Helpers](/categories/utility)

softius/cakephp-param-converter
===============================

Param converter for CakePHP Routing

v0.4.0(7y ago)2301[1 issues](https://github.com/softius/cakephp-param-converter/issues)[1 PRs](https://github.com/softius/cakephp-param-converter/pulls)MITPHPPHP &gt;=7.1

Since Apr 26Pushed 2y ago1 watchersCompare

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

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

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

[](#param-converter)

CakePHP v3.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)

Install
-------

[](#install)

Using Composer:

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

```

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

```
bin/cake plugin load ParamConverter

```

Usage
-----

[](#usage)

Adjustments on application level are only necessary if you need to remove or / add new param converters.

### Configuration

[](#configuration)

By default, the plugin provides and registers converters that can be used to convert request parameters to Entity and DateTime instances as well as various scalar types. Converters can be removed / added by adjusting the following configuration:

```
