{"id":15287375,"url":"https://github.com/jungi-php/framework-extra-bundle","last_synced_at":"2025-04-13T05:08:59.837Z","repository":{"id":57002984,"uuid":"201803144","full_name":"jungi-php/framework-extra-bundle","owner":"jungi-php","description":"Attributes for request/response operations, content negotiation, and more for Symfony projects.","archived":false,"fork":false,"pushed_at":"2023-05-07T11:55:18.000Z","size":269,"stargazers_count":20,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-13T05:08:48.513Z","etag":null,"topics":["attributes","content-negotiation","php","request","response","symfony","symfony-bundle"],"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/jungi-php.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-08-11T18:53:46.000Z","updated_at":"2023-08-26T19:14:35.000Z","dependencies_parsed_at":"2024-10-14T18:21:13.862Z","dependency_job_id":"394e8315-0411-4e24-b13a-484160c765e9","html_url":"https://github.com/jungi-php/framework-extra-bundle","commit_stats":{"total_commits":173,"total_committers":1,"mean_commits":173.0,"dds":0.0,"last_synced_commit":"62bdf0e8676c4f52e0ec69063c03d6595e581ac6"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jungi-php%2Fframework-extra-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jungi-php%2Fframework-extra-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jungi-php%2Fframework-extra-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jungi-php%2Fframework-extra-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jungi-php","download_url":"https://codeload.github.com/jungi-php/framework-extra-bundle/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248665747,"owners_count":21142123,"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":["attributes","content-negotiation","php","request","response","symfony","symfony-bundle"],"created_at":"2024-09-30T15:27:59.140Z","updated_at":"2025-04-13T05:08:59.818Z","avatar_url":"https://github.com/jungi-php.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JungiFrameworkExtraBundle\n\n[![Build Status](https://github.com/jungi-php/framework-extra-bundle/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/jungi-php/framework-extra-bundle/actions)\n![PHP](https://img.shields.io/packagist/php-v/jungi/framework-extra-bundle)\n\nThis bundle adds additional features whose main purpose is to facilitate request/response operations.\n\nAttributes:\n\n* [`RequestBody`](https://piku235.gitbook.io/jungiframeworkextrabundle/attributes#requestbody)\n* [`RequestHeader`](https://piku235.gitbook.io/jungiframeworkextrabundle/attributes#requestheader)\n* [`RequestCookie`](https://piku235.gitbook.io/jungiframeworkextrabundle/attributes#requestcookie)\n* [`RequestParam`](https://piku235.gitbook.io/jungiframeworkextrabundle/attributes#requestparam)\n* [`QueryParam`](https://piku235.gitbook.io/jungiframeworkextrabundle/attributes#queryparam)\n* [`QueryParams`](https://piku235.gitbook.io/jungiframeworkextrabundle/attributes#queryparams)\n\n## Development\n\nWith the new release of Symfony v6.3 [mapping request data to typed objects](https://symfony.com/blog/new-in-symfony-6-3-mapping-request-data-to-typed-objects), the development and further need for this bundle has come to an end.\n\n## Documentation\n\n[GitBook](https://piku235.gitbook.io/jungiframeworkextrabundle)\n\n## Quick insight\n\n```php\nnamespace App\\Controller;\n\nuse Symfony\\Component\\HttpFoundation\\File\\UploadedFile;\nuse Symfony\\Component\\Routing\\Attribute\\Route;\nuse Jungi\\FrameworkExtraBundle\\Attribute\\QueryParams;\nuse Jungi\\FrameworkExtraBundle\\Attribute\\RequestBody;\nuse Jungi\\FrameworkExtraBundle\\Attribute\\QueryParam;\nuse Jungi\\FrameworkExtraBundle\\Attribute\\RequestParam;\nuse Jungi\\FrameworkExtraBundle\\Controller\\ControllerTrait;\n\n#[Route('/users')]\nclass UserController\n{\n    use ControllerTrait;\n\n    #[Route('/{userId}/residential-address', methods: ['PATCH'])]\n    public function changeResidentialAddress(string $userId, #[RequestBody] UserResidentialAddressData $data)\n    {\n        // ..\n    }\n\n    #[Route('/{userId}/files/{fileName}', methods: ['PUT'])]\n    public function uploadFile(string $userId, string $fileName, #[RequestBody] UploadedFile $file)\n    {\n        // ..\n    }\n\n    #[Route('/{userId}/avatar', methods: ['PATCH'])]\n    public function replaceAvatar(string $userId, #[RequestParam] UploadedFile $file,  #[RequestParam] string $title)\n    {\n        // ..\n    }\n\n    #[Route(methods: ['GET'])]\n    public function getUsers(#[QueryParam] ?int $limit = null, #[QueryParam] ?int $offset = null)\n    {\n        // ..\n    }\n\n    #[Route(methods: ['GET'])]\n    public function filterUsers(#[QueryParams] FilterUsersDto $filterData)\n    {\n        // ..\n        /** @var UserData[] $filteredUsers */\n        return $this-\u003eentity($filteredUsers);\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjungi-php%2Fframework-extra-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjungi-php%2Fframework-extra-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjungi-php%2Fframework-extra-bundle/lists"}