nuwave / lighthouse by chrissm79

A framework for serving GraphQL from Laravel
6,034,861
3,315
38
Package Data
Maintainer Username: chrissm79
Maintainer Contact: chris@nuwavecommerce.com (Christopher Moore)
Package Create Date: 2016-05-29
Package Last Update: 2024-04-09
Home Page: https://lighthouse-php.com
Language: PHP
License: MIT
Last Refreshed: 2024-04-15 15:13:11
Package Statistics
Total Downloads: 6,034,861
Monthly Downloads: 164,476
Daily Downloads: 2,030
Total Stars: 3,315
Total Watchers: 38
Total Forks: 429
Total Open Issues: 125

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.