Skip to content
GraphQL Server for Laravel
PHP Other
  1. PHP 99.8%
  2. Other 0.2%
Branch: master
Clone or download
enzonotario and spawnia Enable multiple queries in a single request by clearing `BatchLoader`…
… instances after executing each queryCalling multiple mutations with relationship in a test fails (#1030)
Latest commit bd42907 Dec 7, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Add spawnia to FUNDING.yml Nov 19, 2019
assets Docs overhaul: search, back-to-top, medium-zoom, top-level tutorial, … Oct 9, 2019
benchmarks Fix autoloading + namespace for benchmarks May 4, 2019
config Allow configuring if relations are resolved through a batch loa… (#1059) Nov 27, 2019
docs Define `@enum` as a directive class (#1078) Dec 6, 2019
src Enable multiple queries in a single request by clearing `BatchLoader`… Dec 7, 2019
tests Enable multiple queries in a single request by clearing `BatchLoader`… Dec 7, 2019
.codecov.yml Enable code coverage with Codecov.io. Apr 23, 2017
.editorconfig Merge branch 'master' into phpstan Apr 18, 2019
.gitattributes Add UPGRADE.md (#1014) Oct 21, 2019
.gitignore Use new Collection() instead of collect() helper. (#663) Mar 13, 2019
.styleci.yml Exclude _ide_helper from style-ci Jan 8, 2019
.travis.yml Makefile (#1013) Oct 15, 2019
CHANGELOG.md Enable multiple queries in a single request by clearing `BatchLoader`… Dec 7, 2019
CONTRIBUTING.md Makefile (#1013) Oct 15, 2019
Dockerfile Update local dev to php-7.3 Aug 30, 2019
LICENSE Add a LICENSE file Apr 12, 2018
Makefile Remove annoying vendor dependency in Makefile Nov 19, 2019
README.md Update Slack invite link (#1010) Oct 12, 2019
UPGRADE.md Add UPGRADE.md (#1014) Oct 21, 2019
_ide_helper.php Simplify builder (#1008) Oct 20, 2019
composer.json Avoid old dependencies in Travis CI (#1060) Nov 26, 2019
docker-compose.yml Simplify docker-compose setup for docs Nov 4, 2019
logo.png Added Lighthosue logo to root to have pretty avatars. Apr 18, 2018
netlify.toml Docs overhaul: search, back-to-top, medium-zoom, top-level tutorial, … Oct 9, 2019
phpbench.json Restrict cols from ast report output May 4, 2019
phpstan.neon Level up PHPStan (#977) Sep 26, 2019
phpunit.xml.dist phpunit: remove excluded config for files not present anymore (#827) Jun 2, 2019

README.md

Lighthouse

Build Status codecov PHPStan StyleCI Packagist GitHub license Get on Slack

GraphQL Server for Laravel

Lighthouse is a PHP package that allows you to serve a GraphQL endpoint from your Laravel application. It greatly reduces the boilerplate required to create a schema, it integrates well with any Laravel project, and it's highly customizable giving you full control over your data.

Documentation

The documentation lives at lighthouse-php.com.

If you like reading plain markdown, you can also find the source files in the docs folder.

Get started

If you have an existing Laravel project, all you really need to get up and running is a few steps:

  1. Install via composer require nuwave/lighthouse
  2. Publish the default schema php artisan vendor:publish --provider="Nuwave\Lighthouse\LighthouseServiceProvider" --tag=schema
  3. Use something like GraphQL Playground to explore your GraphQL endpoint

Check out the docs to learn more.

Get involved

We welcome contributions of any kind.

Changelog

All notable changes to this project are documented in CHANGELOG.md.

Contributing

See how you can start CONTRIBUTING.md to this project.

Security Vulnerabilities

If you discover a security vulnerability within Lighthouse, please email Benedikt Franke via benedikt@franke.tech or visit https://tidelift.com/security.

You can’t perform that action at this time.