PHP Classes

Laravel GraphQL Server: API server to demonstrate GraphQL query language

Recommend this page to a friend!

  Author Author  
Picture of TJ Webb
Name: TJ Webb <contact>
Classes: 5 packages by
Country: Canada Canada
Innovation award
Innovation award
Nominee: 2x


  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
This package provides an API server to demonstrate GraphQL query language.

It provides an API application implemented using the Laravel framework that implements the GraphQL specification to define how the API will respond to query requests.

This API application reads a GraphQL schema specification file to determine how to route API requests to classes that will generate responses from parameters extracted from the request.

Details

Laravel GraphQL Example

Install and Run

docker-composer -up

GraphQL Endpoint

/graphql

GraphQL Playground Endpoint

/graphql-playground

Sample Models

  • Department: `/departments`
  • Employees: `/employees`
  • Roles: `/roles`

Fun Stuff

  • It uses a package I created to automatically generate routes, controllers, and views for models (`webbtj/crud`).
  • Uses `nuwave/lighthouse` for GraphQL implementation.
  • Seeds data from a migration so the DB will keep a record of the action and not perform it multiple times (and will perform in on `docker-compose up` without additional docker config).

  Classes of TJ Webb  >  Laravel GraphQL Server  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  

 

Name: Laravel GraphQL Server
Base name: lara-graph
Description: API server to demonstrate GraphQL query language
Version: 1.0.0
PHP version: 5
License: GNU General Public License (GPL)
 
  Groups   Applications   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Web services Web data clipping, SOAP or XML-RPC clients and servers View top rated classes


  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.

  Files folder image Files  
File Role Description
Files folder imageapp (4 files, 4 directories)
Files folder imagebootstrap (1 file)
Files folder imageconfig (14 files)
Files folder imagedatabase (3 directories)
Files folder imagegraphql (1 file)
Files folder imagepublic (4 files)
Files folder imageresources (4 directories)
Files folder imageroutes (4 files)
Files folder imagetests (2 files, 2 directories)
Accessible without login Plain text file .editorconfig Data Auxiliary data
Accessible without login Plain text file .env.example Data Auxiliary data
Accessible without login Plain text file .styleci.yml Data Auxiliary data
Plain text file artisan Class Class source
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file docker-compose.yml Data Auxiliary data
Accessible without login Plain text file package.json Data Auxiliary data
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file readme.md Doc. Documentation
Accessible without login Plain text file server.php Aux. Auxiliary script
Accessible without login Plain text file webpack.mix.js Data Auxiliary data

Install with Composer Install with Composer - Download Download all files: lara-graph.tar.gz lara-graph.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.

For more information send a message to info at phpclasses dot org.