{"id":15529165,"url":"https://github.com/silasyudi/restboot-bundle","last_synced_at":"2026-04-27T23:37:05.620Z","repository":{"id":39760087,"uuid":"457346032","full_name":"silasyudi/restboot-bundle","owner":"silasyudi","description":"Symfony package to speed up the development of rest apis","archived":false,"fork":false,"pushed_at":"2023-06-29T03:07:19.000Z","size":84,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T21:43:28.119Z","etag":null,"topics":["annotations","api","bundle","controllers","php","rest","symfony","transactions"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/silasyudi/restboot-bundle","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/silasyudi.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":"2022-02-09T12:19:08.000Z","updated_at":"2022-05-14T19:54:38.000Z","dependencies_parsed_at":"2023-02-10T17:30:31.508Z","dependency_job_id":null,"html_url":"https://github.com/silasyudi/restboot-bundle","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/silasyudi/restboot-bundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silasyudi%2Frestboot-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silasyudi%2Frestboot-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silasyudi%2Frestboot-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silasyudi%2Frestboot-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/silasyudi","download_url":"https://codeload.github.com/silasyudi/restboot-bundle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silasyudi%2Frestboot-bundle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32360114,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["annotations","api","bundle","controllers","php","rest","symfony","transactions"],"created_at":"2024-10-02T11:16:41.310Z","updated_at":"2026-04-27T23:37:05.583Z","avatar_url":"https://github.com/silasyudi.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RestBoot\n\n[![Tests](https://github.com/silasyudi/restboot-bundle/actions/workflows/tests.yml/badge.svg)](https://github.com/silasyudi/restboot-bundle/actions/workflows/tests.yml)\n[![Maintainability](https://api.codeclimate.com/v1/badges/6e06d94e4468b1e8f655/maintainability)](https://codeclimate.com/github/silasyudi/restboot-bundle/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/6e06d94e4468b1e8f655/test_coverage)](https://codeclimate.com/github/silasyudi/restboot-bundle/test_coverage)\n\nSymfony package to speed up the development of rest apis.\n\n## Summary\n- [Language / Idioma](#language--idioma)\n- [Instalation](#instalation)\n- [Requirements](#requirements)\n- [Features](#features)\n- [Documentation](#documentation)\n\n## Language / Idioma\n\nLeia a versão em português :brazil: [aqui](README_PT_BR.md).\n\n## Instalation\n\n```sh\ncomposer require silasyudi/restboot-bundle\n```\n\n## Requirements\n\n- PHP 7.4+\n- Composer\n- Symfony 4.4+ / 5+\n- Doctrine 2+\n\n## Features\n\n### Convert payloads into objects in the controller methods\n\nWith @Body and @Query annotations, you can automatically convert your payloads\nand queries into objects in the controller methods.\n\n#### Example without RestBoot:\n\n```php\n/**\n * Payload converted with some serializer\n * @Route(\"/myAction\", methods={\"POST\"}) \n */\npublic function __invoke(Request $request, SerializerInterface $serializer)\n{\n    $myObject = $serializer-\u003edeserialize(\n        $request-\u003egetContent(),\n        MyObject::class,\n        'json'\n    );\n    ...\n```\n\n#### Example with RestBoot:\n\n```php\nuse SilasYudi\\RestBootBundle\\Rest\\Annotation\\Body;\n\n/**\n * Payload converted with @Body annotation\n * @Route(\"/myAction\", methods={\"POST\"})\n * @Body(\"myObject\")\n */\npublic function __invoke(MyObjectDTO $myObject)\n{\n    ...\n```\n\n### Easily manage the Doctrine transaction\n\nWith @Transaction annotation, you can reduce the verbosity of Doctrine transaction management.\n\n#### Example without RestBoot:\n\n```php\n/**\n * @Route(\"/myAction\", methods={\"POST\"}) \n */\npublic function __invoke()\n{\n    $connection = $this-\u003egetDoctrine()-\u003egetConnection(); \n\n    try {\n        $connection-\u003ebeginTransaction();\n            \n        $this-\u003eservice-\u003esomeAction();\n\n        if ($connection-\u003eisTransactionActive()) {\n            $connection-\u003ecommit();\n        }\n    } catch (SomeException $exception) {\n        if ($connection-\u003eisTransactionActive()) {\n            $connection-\u003erollback();\n        }\n    }\n\n    ...\n```\n\n#### Example with RestBoot:\n\n```php\nuse SilasYudi\\RestBootBundle\\Transaction\\Annotation\\Transaction;\n\n...\n\n/**\n * @Route(\"/myAction\", methods={\"POST\"})\n * @Transaction(\"myConnection\")\n */\npublic function __invoke()\n{\n    $this-\u003eservice-\u003esomeAction();\n    ...\n```\n\n## Documentation\n\n**English** :us:\n- [REST Converter Annotations](Documentation/REST.md)\n- [Transaction Annotation](Documentation/TRANSACTION.md)\n\n**Portuguese** :brazil:\n- [REST Converter Annotations](Documentation/REST_PT_BR.md)\n- [Transaction Annotation](Documentation/TRANSACTION_PT_BR.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilasyudi%2Frestboot-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsilasyudi%2Frestboot-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilasyudi%2Frestboot-bundle/lists"}