standard = '/var/www/html/google_forms/ruleset.xml'; // Path to your ruleset.xml // Create a new PHP_CodeSniffer runner $runner = new Runner(); $runner->config = $config; // Run PHP_CodeSniffer with the specified standard $runner->run();