Server : Apache/2.4.43 (Win64) OpenSSL/1.1.1g PHP/7.4.6 System : Windows NT USER-PC 6.1 build 7601 (Windows 7 Professional Edition Service Pack 1) AMD64 User : User ( 0) PHP Version : 7.4.6 Disable Function : NONE Directory : C:/xampp/phpMyAdmin/vendor/phpmyadmin/sql-parser/bin/ |
#!/usr/bin/env php <?php declare(strict_types=1); $files = [ __DIR__ . "/../vendor/autoload.php", __DIR__ . "/../../vendor/autoload.php", __DIR__ . "/../../../autoload.php", "vendor/autoload.php" ]; $found = false; foreach ($files as $file) { if (file_exists($file)) { require_once $file; $found = true; break; } } if (!$found) { die( "You need to set up the project dependencies using the following commands:" . PHP_EOL . "curl -sS https://getcomposer.org/installer | php" . PHP_EOL . "php composer.phar install" . PHP_EOL ); } $cli = new PhpMyAdmin\SqlParser\Utils\CLI(); exit($cli->runLint());