{"id":28859992,"url":"https://github.com/caxy/symfony-starter-kit","last_synced_at":"2026-04-29T19:32:59.455Z","repository":{"id":62500195,"uuid":"77942315","full_name":"caxy/symfony-starter-kit","owner":"caxy","description":"Caxy's Symfony Starter Kit -- Frontend: https://github.com/caxy/front-end-starter-kit -- ","archived":false,"fork":false,"pushed_at":"2017-02-25T18:25:23.000Z","size":8366,"stargazers_count":2,"open_issues_count":4,"forks_count":1,"subscribers_count":25,"default_branch":"master","last_synced_at":"2025-06-20T04:13:24.547Z","etag":null,"topics":["api-platform","boilerplate","boilerplate-symfony","rest","rest-api","restful-api","starter-kit","symfony","symfony-application","symfony-boilerplate","symfony-starter-kit"],"latest_commit_sha":null,"homepage":"https://www.caxy.com","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/caxy.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":"2017-01-03T18:27:28.000Z","updated_at":"2017-12-06T10:10:09.000Z","dependencies_parsed_at":"2022-11-02T12:01:01.909Z","dependency_job_id":null,"html_url":"https://github.com/caxy/symfony-starter-kit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/caxy/symfony-starter-kit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caxy%2Fsymfony-starter-kit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caxy%2Fsymfony-starter-kit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caxy%2Fsymfony-starter-kit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caxy%2Fsymfony-starter-kit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caxy","download_url":"https://codeload.github.com/caxy/symfony-starter-kit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caxy%2Fsymfony-starter-kit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32441073,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T18:12:22.909Z","status":"ssl_error","status_checked_at":"2026-04-29T18:11:33.322Z","response_time":110,"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-platform","boilerplate","boilerplate-symfony","rest","rest-api","restful-api","starter-kit","symfony","symfony-application","symfony-boilerplate","symfony-starter-kit"],"created_at":"2025-06-20T04:13:05.664Z","updated_at":"2026-04-29T19:32:59.449Z","avatar_url":"https://github.com/caxy.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"symfony-starter-kit\n=======\n\nDecoupled-backend Starter Kit to use with Angular front-end decoupled project\n\n\n###Getting Started\n\n###1. Clone Repo\n```\ngit clone --bare git@github.com:caxy/symfony-starter-kit.git\ncd symfony-starter-kit\ngit push --mirror {NEW_GITHUB_REPO_LINK}\ncd ../\nrm -rf symfony-starter-kit\n\ngit clone {NEW_GITHUB_REPO_LINK}\ncd {NEW_REPO_NAME}\n\n```\n\n###2. Install Packages \u0026 fill-out parameters\n```\ncomposer install\nbash dev-setup.sh\n```\n\n###3. Setup Database \u0026 Load Fixtures\n```\nbin/console d:d:c\nbin/console d:s:c\nbin/console d:f:l -n\n```\n\n###4. Fix your permissions (advanced)\n   \n   See [Setting up Permissions](http://symfony.com/doc/2.3/book/installation.html#checking-symfony-application-configuration-and-setup) in the Symfony book.\n    \nmacOS\n\n```\nHTTPDUSER=`ps axo user,comm | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\\  -f1`\nsudo chmod -R +a \"$HTTPDUSER allow delete,write,append,file_inherit,directory_inherit\" var\nsudo chmod -R +a \"`whoami` allow delete,write,append,file_inherit,directory_inherit\" var\n```\n\nLinux/BSD\n```\nHTTPDUSER=`ps axo user,comm | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\\  -f1`\n#if this doesn't work, try adding `-n` option\nsudo setfacl -R -m u:\"$HTTPDUSER\":rwX -m u:`whoami`:rwX var\nsudo setfacl -dR -m u:\"$HTTPDUSER\":rwX -m u:`whoami`:rwX var\n```\n\n###5. JWT Setup\n\n```\nmkdir -p var/jwt # For Symfony3+, no need of the -p option\nopenssl genrsa -out var/jwt/private.pem -aes256 4096\nopenssl rsa -pubout -in var/jwt/private.pem -out var/jwt/public.pem\n```\n\n###6. Important note for Apache Users\n\nApache server will strip any Authorization header not in a valid HTTP BASIC AUTH format.\n\nIf you intend to use the authorization header mode of this bundle (and you should), please add those rules to your VirtualHost configuration :\n```\nRewriteEngine On\nRewriteCond %{HTTP:Authorization} ^(.*)\nRewriteRule .* - [e=HTTP_AUTHORIZATION:%1]\n```\n\n###7. Confirm\n\n   Run the Symfony built in web server with highest verbosity.\n   \n   ```bash\n   bin/console server:run -vvv\n   ```\n   \n   Then run a command that should return an authentication error:\n   \n   ```bash\n   curl http://localhost:8000/api/users/1\n   ```\n   \n   The response should be:\n   \n   ```json\n   {\"code\":401,\"message\":\"Invalid credentials\"}\n   ```\n   \n   If PHP is misconfigured, it may report errors that include directions for changing the `php.ini` file during\n   any of the above steps.\n   \n   ###8. Testing the API\n   \n   To Test the built in tests run:\n   ```\n   phpunit\n   ```\n   \n   First Generate a JWT Token, from Terminal:\n   ```\n   #username can be any user in the database, user, admin, superadmin are available from the fixutres.\n   bin/console generate:token {username}\n   ```\n   \n   The output will give you a long string, copy that and paste it into the url where it says {INSERT TOKEN HERE}\n   \n   \n   To Test the API, browse to localhost:8000/api/doc?bearer={INSERT TOKEN HERE}\n   Do not confuse this with localhost:8000/api, they are separate, and will not function without the JWT Token.\n   \n   Once on localhost:8000/api/doc?bearer={INSERT TOKEN HERE}, You need to set the token again in the input in the upper right where it says 'api key:' and press save. Then you can start using endpoints.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaxy%2Fsymfony-starter-kit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaxy%2Fsymfony-starter-kit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaxy%2Fsymfony-starter-kit/lists"}