PHP code example of zestic / webonyx-middleware-component
1. Go to this page and download the library: Download zestic/webonyx-middleware-component library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
zestic / webonyx-middleware-component example snippets
// config/modules.config.php
return [
'WebonyxMiddleware',
// ... other modules
];
// config/autoload/graphql.global.php
return [
'graphql' => [
'schema' => [
// Look in webonyx-psr15-middleware for configuration
],
'context' => [
// Your context factory
],
'debug' => true, // Enable in development
],
];