xaddax / webonyx-middleware-component
Laminas framework integration for webonyx-psr15-middleware
dev-main
2025-04-23 09:18 UTC
Requires
- php: ^8.3
- laminas/laminas-servicemanager: ^4.0
- psr/container: ^2.0
- xaddax/webonyx-psr15-middleware: ^15.0
Requires (Dev)
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^11.0
- squizlabs/php_codesniffer: ^3.9
This package is auto-updated.
Last update: 2025-04-23 09:26:18 UTC
README
This library provides Laminas framework integration for the webonyx-psr15-middleware package.
Requirements
- PHP 8.3 or higher
- Composer
Installation
composer require xaddax/webonyx-middleware-component
Usage
- Register the module in your Laminas application:
// config/modules.config.php return [ 'Xaddax\\WebonyxMiddlewareComponent', // ... other modules ];
- 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 MIT License - see the LICENSE file for details.