{"id":18883922,"url":"https://github.com/sfcod/api-boilerplate","last_synced_at":"2025-04-14T21:02:04.880Z","repository":{"id":44202318,"uuid":"223184496","full_name":"sfcod/api-boilerplate","owner":"sfcod","description":null,"archived":false,"fork":false,"pushed_at":"2023-02-28T23:26:29.000Z","size":904,"stargazers_count":7,"open_issues_count":7,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-07-25T20:09:46.582Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sfcod.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-21T13:48:15.000Z","updated_at":"2024-01-17T18:33:12.000Z","dependencies_parsed_at":"2023-02-17T10:16:01.705Z","dependency_job_id":null,"html_url":"https://github.com/sfcod/api-boilerplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sfcod%2Fapi-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sfcod%2Fapi-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sfcod%2Fapi-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sfcod%2Fapi-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sfcod","download_url":"https://codeload.github.com/sfcod/api-boilerplate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223644757,"owners_count":17178765,"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":[],"created_at":"2024-11-08T07:09:50.195Z","updated_at":"2024-11-08T07:09:50.864Z","avatar_url":"https://github.com/sfcod.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Symfony api-boilerplate\n\n## Admin part\n- Sonata admin\n\n## Api part\n- Api platform \n\n#### Run:\n``` bash\n$ composer install\n$ npm install\n$ npm run dev\n$ php init.php\n```\n\n\n#### Docker\n```bash\ndocker exec -it api-bollerplate_web su www-data\n```\n\n#### Generate the SSH keys:\n\n``` bash\n$ mkdir -p config/jwt\n$ openssl genpkey -out config/jwt/private.pem -aes256 -algorithm rsa -pkeyopt rsa_keygen_bits:4096\n$ openssl pkey -in config/jwt/private.pem -out config/jwt/public.pem -pubout\n```\n\n#### PHPUnit:\n```bash \nphp bin/console do:mi:mi --env=test\nphp bin/console do:fi:lo --env=test\n```\n``` bash\n$ php bin/phpunit\n$ php bin/phpunit --filter SecurityControllerTest\n```\n\n#### Custom annotation:\n- Add a custom field to normalize entity\n```bash\n@AgrNormalizer(UserItemNormalizer::class, groups={\"user:statistic\"})\n```\n- Add a query param require validation\n```bash\n@ApiRequiredFilters(\"get\", filters={\"referred\"})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsfcod%2Fapi-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsfcod%2Fapi-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsfcod%2Fapi-boilerplate/lists"}