wyzo/graphql-api

Wyzo GraphQL API

dev-main 2025-04-17 13:08 UTC

This package is auto-updated.

Last update: 2025-04-17 13:08:40 UTC


README

Wyzo GraphQL API enables a seamless, headless eCommerce experience built on Laravel. This API delivers ultra-fast, dynamic, and personalized shopping experiences through a scalable, open-source platform.

Installation:

To install the Wyzo GraphQL API, follow these steps:

  1. Install via Composer

    Run the following command in your terminal to install the GraphQL API package:

    composer require wyzo/graphql-api dev-main
  2. Update Middleware Configuration

    In the app/Http/Kernel.php file, move the following middleware from the web section in the middlewareGroups array to the global middleware array:

    \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
    \Illuminate\Session\Middleware\StartSession::class,
  3. Update Environment Settings

    Add the following entries to your .env file to configure JWT settings:

    JWT_TTL=525600
    JWT_SHOW_BLACKLIST_EXCEPTION=true
  4. Publish Assets and Configurations

    Run the command below to publish assets and configurations for wyzo GraphQL:

    php artisan wyzo-graphql:install

Usage:

  1. GraphQL Playground

    After installation, you can test your API through the GraphQL Playground. Visit:

    http://your-domain.com/graphiql
    
  2. Postman Integration

    Alternatively, you can test the API using Postman by accessing:

    http://your-domain.com/graphql