{"id":21965512,"url":"https://github.com/softius/cakephp-param-converter","last_synced_at":"2025-04-24T03:42:33.750Z","repository":{"id":57054955,"uuid":"165525275","full_name":"softius/cakephp-param-converter","owner":"softius","description":"Converts request parameters to objects","archived":false,"fork":false,"pushed_at":"2023-08-10T17:36:05.000Z","size":95,"stargazers_count":2,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-24T03:42:22.437Z","etag":null,"topics":["cakephp","cakephp-plugin"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/softius.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-13T16:03:28.000Z","updated_at":"2020-11-24T03:58:41.000Z","dependencies_parsed_at":"2024-11-29T12:48:00.002Z","dependency_job_id":"bcfd2d8c-637c-4775-8fcf-52a4d96e96cb","html_url":"https://github.com/softius/cakephp-param-converter","commit_stats":{"total_commits":83,"total_committers":6,"mean_commits":"13.833333333333334","dds":0.5180722891566265,"last_synced_commit":"e89bbc40802ba34b12612df87e6ece1226ed7d65"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softius%2Fcakephp-param-converter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softius%2Fcakephp-param-converter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softius%2Fcakephp-param-converter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softius%2Fcakephp-param-converter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/softius","download_url":"https://codeload.github.com/softius/cakephp-param-converter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250559524,"owners_count":21450167,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cakephp","cakephp-plugin"],"created_at":"2024-11-29T12:47:51.841Z","updated_at":"2025-04-24T03:42:33.699Z","avatar_url":"https://github.com/softius.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Param Converter\n\nCakePHP 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.\n\nHeavily inspired by [Symfony ParamConverter](https://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/annotations/converters.html)\n\n## Install\n\nUsing Composer:\n\n```\ncomposer require softius/cakephp-param-converter\n```\n\nYou then need to load the plugin. You can use the shell command:\n\n```\nbin/cake plugin load ParamConverter\n```\n\n## Usage\n\nAdjustments on application level are only necessary if you need to remove or / add new param converters.\n\n### Configuration\n\nBy 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.\nConverters can be removed / added by adjusting the following configuration:\n\n``` php\n\u003c?php\n// config/param_converter.php\nreturn [\n    'ParamConverter' =\u003e [\n        'converters' =\u003e [\n            \\ParamConverter\\EntityParamConverter::class,\n            \\ParamConverter\\DateTimeParamConverter::class,\n            \\ParamConverter\\BooleanParamConverter::class,\n            \\ParamConverter\\IntegerParamConverter::class,\n            \\ParamConverter\\FloatParamConverter::class\n        ]\n    ]\n];\n```\n\n### Creating a converter\n\nAll converters must implement the `ParamConverterInterface`.\n\n## Security\n\nIf you discover any security related issues, please email softius@gmail.com instead of using the issue tracker.\n\n## Credits\n\n- [Iacovos Constantinou][link-author]\n- [All Contributors][link-contributors]\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE) for more information.\n\n[link-author]: https://github.com/softius\n[link-contributors]: ../../contributors","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftius%2Fcakephp-param-converter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoftius%2Fcakephp-param-converter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftius%2Fcakephp-param-converter/lists"}