1. Go to this page and download the library: Download worksome/graphlint 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/ */
worksome / graphlint example snippets
declare(strict_types=1);
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Worksome\Graphlint\Configuration\Visitor;
use Worksome\Graphlint\Inspections\CamelCaseFieldDefinitionInspection;
return function (ContainerConfigurator $config): void {
$services = $config->services();
$services->set(CamelCaseFieldDefinitionInspection::class)
->tag(Visitor::COMPILED);
};
declare(strict_types=1);
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Worksome\Graphlint\GraphlintSet;
return function (ContainerConfigurator $config): void {
$config->import(GraphlintSet::Standard->value);
};
return function (ContainerConfigurator $config): void {
$config->services()
->set(IgnoreByNameSuppressorInspection::class)
->call('configure', [
'TEST',
'AccountInput.name' // Dotted value for only applying on some fields
]);
};
bash
$ composer global
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.