{"id":15077850,"url":"https://github.com/jakzal/paramconverterbundle","last_synced_at":"2025-10-05T12:31:49.855Z","repository":{"id":36717173,"uuid":"41023740","full_name":"jakzal/ParamConverterBundle","owner":"jakzal","description":"This bundle provides additional param converters for Symfony.","archived":true,"fork":false,"pushed_at":"2017-05-23T16:14:51.000Z","size":24,"stargazers_count":16,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-07-28T16:44:01.977Z","etag":null,"topics":["bundle","php","symfony","symfony-bundle"],"latest_commit_sha":null,"homepage":null,"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/jakzal.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}},"created_at":"2015-08-19T08:57:18.000Z","updated_at":"2023-01-28T07:49:49.000Z","dependencies_parsed_at":"2022-08-24T22:30:28.777Z","dependency_job_id":null,"html_url":"https://github.com/jakzal/ParamConverterBundle","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/jakzal/ParamConverterBundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakzal%2FParamConverterBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakzal%2FParamConverterBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakzal%2FParamConverterBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakzal%2FParamConverterBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jakzal","download_url":"https://codeload.github.com/jakzal/ParamConverterBundle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakzal%2FParamConverterBundle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278456955,"owners_count":25989949,"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","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["bundle","php","symfony","symfony-bundle"],"created_at":"2024-09-25T04:33:04.206Z","updated_at":"2025-10-05T12:31:49.535Z","avatar_url":"https://github.com/jakzal.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Param Converter Bundle\n======================\n\nThis bundle provides additional param converters for Symfony.\n\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/jakzal/ParamConverterBundle/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/jakzal/ParamConverterBundle/?branch=master)\n[![Build Status](https://travis-ci.org/jakzal/ParamConverterBundle.svg?branch=master)](https://travis-ci.org/jakzal/ParamConverterBundle)\n\n**Since [argument resolvers](http://symfony.com/doc/current/controller/argument_value_resolver.html)\nand [service arguments](http://symfony.com/doc/master//service_container/3.3-di-changes.html#controllers-are-registered-as-services)\nwere introduced in Symfony 3.3, the param converter provided by this bundle is redundant.\nWe can achieve pretty much the same by injecting services directly to controller actions.**\n\nInstallation\n------------\n\nThis bundle requires:\n\n* PHP ^7.0\n* sensio/framework-extra-bundle ~3.0\n\nThe easiest way to install it is to use Composer:\n\n```\n$ composer require zalas/param-converter-bundle:^1.0\n```\n\nService Param Converter\n-----------------------\n\nThe service param converter calls a configured service to convert a request\nattribute to an object.\n\nOptions:\n\n* service - a service id\n* method - a method name to be called on the service\n* arguments - list of request attributes to be passed as method call arguments\n\nExample:\n\n```php\n\u003c?php\n\nnamespace AppBundle\\Controller;\n\nuse AppBundle\\Site\\Visitor;\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\ParamConverter;\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Route;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\nclass DemoController\n{\n    /**\n     * @Route(\"/hello/{name}\")\n     * @ParamConverter(\n     *     \"visitor\",\n     *     converter=\"service\",\n     *     options={\n     *         \"service\": \"visitor_repository\",\n     *         \"method\": \"findByName\",\n     *         \"arguments\": {\"name\"}\n     *     }\n     * )\n     */\n    public function indexAction(Visitor $visitor)\n    {\n        return new Response('Hello '.$visitor-\u003egetName());\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakzal%2Fparamconverterbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjakzal%2Fparamconverterbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakzal%2Fparamconverterbundle/lists"}