PHP code example of enjin-forks / graphql-formatter
1. Go to this page and download the library: Download enjin-forks/graphql-formatter 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/ */
enjin-forks / graphql-formatter example snippets
return [
// Directories to scan for .gql and .graphql files
'paths' => ['src/', 'resources/graphql/'],
// Indentation style: '2spaces' | '4spaces' | 'tab'
'indent' => '4spaces',
// Maximum line width before arguments expand to multiple lines
'print_width' => 80,
// Maximum number of arguments allowed on a single line
// (still subject to print_width check)
'max_inline_args' => 2,
// Whether to ensure a trailing newline at end of file
'trailing_newline' => true,
];