{"id":20536114,"url":"https://github.com/marco-gallegos/lumen-graphql-api-template","last_synced_at":"2026-05-08T02:20:36.822Z","repository":{"id":54720423,"uuid":"235289570","full_name":"marco-gallegos/lumen-graphql-api-template","owner":"marco-gallegos","description":"Template / Boilerplate To build GraphQL API's with Lumen 6 ","archived":false,"fork":false,"pushed_at":"2023-02-02T12:22:48.000Z","size":233,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-16T13:58:08.388Z","etag":null,"topics":["api","api-template","boilerplate","graphql","graphql-php","graphql-server","laravel","lumen","lumen-framework","template"],"latest_commit_sha":null,"homepage":"","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/marco-gallegos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":"marcogallegos","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2020-01-21T08:23:35.000Z","updated_at":"2020-04-20T04:25:17.000Z","dependencies_parsed_at":"2023-02-17T19:45:56.370Z","dependency_job_id":null,"html_url":"https://github.com/marco-gallegos/lumen-graphql-api-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marco-gallegos%2Flumen-graphql-api-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marco-gallegos%2Flumen-graphql-api-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marco-gallegos%2Flumen-graphql-api-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marco-gallegos%2Flumen-graphql-api-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marco-gallegos","download_url":"https://codeload.github.com/marco-gallegos/lumen-graphql-api-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242142332,"owners_count":20078701,"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":["api","api-template","boilerplate","graphql","graphql-php","graphql-server","laravel","lumen","lumen-framework","template"],"created_at":"2024-11-16T00:35:29.203Z","updated_at":"2026-05-08T02:20:31.792Z","avatar_url":"https://github.com/marco-gallegos.png","language":"PHP","funding_links":["https://ko-fi.com/marcogallegos"],"categories":[],"sub_categories":[],"readme":"# Lumen Graphql Template/Boilerplate\n\nThe objective of this repo is build a graphql api boilerplate/template in lumen because at the time of building this project there was no attempt at github.\n\ngraphql is great, i use it on python and want to make it easier in php.\n\n\n## How To Start / Setup\n\n1 -  clone the repo with your api/project name\n\n```shellscript\ngit clone https://github.com/marco-gallegos/lumen-graphql-template \"your project name\"\ncd \"your project name\"\ncomposer install\ncp .env.example .env\n```\n\n2 - Nothing to do, serve and let's code. don't forget visit the /graphql-playground route\n\n\n\n## Main Features\n\nSome cool additional features in this template/boilerplate\n\n### Laravel Generators (dev dependency)\n\nNot supported by default in lumen, [a third party package](https://github.com/flipboxstudio/lumen-generator) that provides artisan commands like make:controller or serve\n\n### Graphql Playground (dev dependency)\n\nA sandbox for test your graphql api by [a third party package](https://github.com/mll-lab/laravel-graphql-playground).\n\nOnly need to acces to your development server on route /graphql-playground example http://localhost:8000/graphql-playground\n\n\n### CORS\n\n[Third party package](https://github.com/palanik/lumen-cors) preconfigured to add CORS headers to every request.\n\n### JWT Auth\n\nTo Do\n\n## Tips\n\nUse [insomnia](https://insomnia.rest/) for test this project, if you use linux is available in snap store.\n\n```shellscript\nsudo snap install insomnia\n```\n\n\n## Configuration\n\n### Graphql Server | [Lighthouse](https://lighthouse-php.com/)\n\n\nsteps to make lighthouse plugin works in lumen, inspired by [Bruno Silva on Medium](https://medium.com/@bsilva0x87/how-to-configure-laravel-lumen-with-lighthouse-php-graphql-ad63b8273321)\n\n```shellscript\nmkdir ./config\n\ncp vendor/nuwave/lighthouse/config/config.php ./config/lighthouse.php\n\n# checking lighthouse file created on schema -\u003e register\n# we need to replicate this file\n\nmkdir ./graphql\n\ncp vendor/nuwave/lighthouse/assets/default-schema.graphql ./graphql/schema.graphql\n\n```\n\n### Graphql Playground\n\n```shellscript\ncp vendor/mll-lab/laravel-graphql-playground/src/graphql-playground.php config/graphql-playground.php\n```\n\n```php\n# adding this to app.php\n/*\n|--------------------------------------------------------------------------\n| GraphQL Playground\n|--------------------------------------------------------------------------\n|\n| Loads mll-lab/laravel-graphql-playground configuration file into the application.\n|\n*/\n$app-\u003econfigure('graphql-playground');\n```\n\n## License\n\nThe Lumen framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarco-gallegos%2Flumen-graphql-api-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarco-gallegos%2Flumen-graphql-api-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarco-gallegos%2Flumen-graphql-api-template/lists"}