{"id":15310335,"url":"https://github.com/maykonn/docker-symfony-4-restful","last_synced_at":"2026-02-17T15:32:12.976Z","repository":{"id":73609608,"uuid":"145881177","full_name":"Maykonn/docker-symfony-4-restful","owner":"Maykonn","description":"Create your Symfony 4 RESTful API with JWT Authentication simply and fastly. SF4 RESTful API Skeleton with Docker and JWT Auth.","archived":false,"fork":false,"pushed_at":"2019-02-02T02:45:44.000Z","size":80,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-10T01:42:52.227Z","etag":null,"topics":["api","docker","docker-image","docker-symfony","dockerfile","fosrestbundle","json","jwt","makefile","mysql","nginx","php","php7","rest","restful","restful-api","skeleton","symfony","symfony4"],"latest_commit_sha":null,"homepage":"https://github.com/Maykonn/docker-symfony-4-restful","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/Maykonn.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,"zenodo":null}},"created_at":"2018-08-23T16:39:23.000Z","updated_at":"2023-07-18T21:59:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"defbb59d-b737-49ee-a320-8291cbcc0bdd","html_url":"https://github.com/Maykonn/docker-symfony-4-restful","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Maykonn/docker-symfony-4-restful","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maykonn%2Fdocker-symfony-4-restful","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maykonn%2Fdocker-symfony-4-restful/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maykonn%2Fdocker-symfony-4-restful/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maykonn%2Fdocker-symfony-4-restful/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Maykonn","download_url":"https://codeload.github.com/Maykonn/docker-symfony-4-restful/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maykonn%2Fdocker-symfony-4-restful/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29548320,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T14:33:00.708Z","status":"ssl_error","status_checked_at":"2026-02-17T14:32:58.657Z","response_time":100,"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":["api","docker","docker-image","docker-symfony","dockerfile","fosrestbundle","json","jwt","makefile","mysql","nginx","php","php7","rest","restful","restful-api","skeleton","symfony","symfony4"],"created_at":"2024-10-01T08:27:46.803Z","updated_at":"2026-02-17T15:32:12.971Z","avatar_url":"https://github.com/Maykonn.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker Symfony 4 RESTful\nThis project is all you need to start simply and fastly your new RESTful APIs using Symfony 4. This stack uses Docker\nand Makefile to create an easy maintenance cycle for your REST API.\n\n## Installing and starting your RESTful API\n1) Just clone this repository with:\n```\ngit clone https://github.com/Maykonn/docker-symfony-4-restful.git\n```\n\n2) Go to your `hosts` file and add `app.localhost`:\n```\n127.0.0.1   app.localhost\n```\n\n3) Execute the following command to install and build the Docker image (you will be asked to provide a JWT \nsecret, you can type what you prefer):\n```\nmake install\n```\n\n4) Create the database and database structure:\n```\nmake database\nmake database-structure\n```\n\n5) And start your API:\n```\nmake start\n```\n\n## Using the initial provided API\nThe initial RESTful API code provided by this bundle is an example of a JWT Authentication approach with Symfony 4, \nbelow are listed all initial routes provided:  \n\n`POST \u003e http://app.localhost:8080/register` (json body example):  \n```JSON\n{\n\t\"username\": \"my-username\",\n\t\"password\": \"123456\"\n}\n```\n\n`POST \u003e http://app.localhost:8080/login_check` (json body example):  \n```JSON\n{\n\t\"username\": \"my-username\",\n\t\"password\": \"123456\"\n}\n```\n\n`GET \u003e http://app.localhost:8080/api` (Authorization Header is required for all protected routes):  \n```\nAuthorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6Ik1heWtvbm4iLCJpYXQiOjE1MTYyMzkwMjJ9.b7rMHdFlAixTQA6DzLoHIjw3MrRtkbm3tuUr_zgXhmE\n```\n\n## What to do next\nA pretty basic API is provided by this project and now you can start creating your own resources to your API with new\ncontrollers, models, repositories, services, whatever you need.\n\n## About make commands\nThe Makefile is here to keep the management of your API as simple as possible avoiding confuse commands. \n\n- `make install`: to install and build the project\n- `make update`: to update the project dependencies\n- `make start`: to start the API\n- `make stop`: to stop the API\n- `make restart`: to stop and then start again the API\n- `make jwt-keys`: to create the public and private keys to protect your routes with JWT, the `make install` uses this command\n- `make database`: to create the database\n- `make database-structure`: to create the database structure (tables, etc.)\n- `make database-structure-update`: to update the database structure\n\nRead more about `make` here: https://www.gnu.org/software/make/\n\n**OBS:** `make database*` commands will be executed only when in **\"dev\"** environment.  \nIf are you aware about the risks use the `force=1` param, example:\n```\nmake database-structure-update force=1\n```\n\n# Community Support\nIf you need help with this bundle please consider [open a question on StackOverflow](https://stackoverflow.com/questions/ask)\nusing the `docker-symfony-4-restful` tag, it is the official support platform for this bundle.\n\nGithub Issues are dedicated to bug reports and feature requests.\n\n# Contributing\nYou can contribute to this project cloning this repository in your clone you just need to create a new branch using a \nname related to the new functionality which you'll create.  \nWhen you finish your work, you just need to create a pull request which will be revised, merged to master branch (if the code \ndoesn't break the project) and published as a new release.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaykonn%2Fdocker-symfony-4-restful","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaykonn%2Fdocker-symfony-4-restful","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaykonn%2Fdocker-symfony-4-restful/lists"}