Skip to content

zestic/webonyx-middleware-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webonyx Middleware Component

Test codecov License

This library provides Laminas framework integration for the webonyx-psr15-middleware package.

Requirements

  • PHP 8.3 or higher
  • Composer

Installation

composer require zestic/webonyx-middleware-component

Usage

  1. Register the module in your Laminas application:
// config/modules.config.php
return [
    'WebonyxMiddleware',
    // ... other modules
];
  1. Configure your GraphQL schema and middleware:
// config/autoload/graphql.global.php
return [
    'graphql' => [
        'schema' => [
             // Look in webonyx-psr15-middleware for configuration
        ],
        'context' => [
            // Your context factory
        ],
        'debug' => true, // Enable in development
    ],
];

Testing

Run the test suite:

composer test

Run static analysis:

composer stan

Run code style checks:

composer cs-check

Fix code style issues:

composer cs-fix

License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages