use Drupal\Core\DrupalKernel; use Symfony\Component\HttpFoundation\Request; if (PHP_SAPI !== 'cli') { return; } if (version_compare(PHP_VERSION, '5.4.5') < 0) { $version = PHP_VERSION; echo <<<EOF ERROR: This script requires at least PHP version 5.4.5. You invoked it with PHP version {$version}. \n EOF; exit;
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter