Skip to content

Instantly share code, notes, and snippets.

@wehowski
Created August 25, 2025 10:13
Show Gist options
  • Select an option

  • Save wehowski/e07524043fc4df7c9a7bf8e76a2676d7 to your computer and use it in GitHub Desktop.

Select an option

Save wehowski/e07524043fc4df7c9a7bf8e76a2676d7 to your computer and use it in GitHub Desktop.
Quick insane remote-autoloader "Doorkick"
<?php
/**
* Its a doorkick: https://startforum.de/content/perma?id=2156 !!!
*
* But it is short and works.
*
* Do NOT use this, only test or replicate: https://github.com/frdl/remote-psr4
*
*/
// $webfatFile =getcwd().\DIRECTORY_SEPARATOR.'webfan.setup.php';
$webfatFile =$_SERVER['DOCUMENT_ROOT'].\DIRECTORY_SEPARATOR.'webfan.setup.php';
if(!file_exists($webfatFile)){
if(!file_put_contents($webfatFile, file_get_contents('https://packages.frdl.de/raw/webfan/website/webfan.setup.php'))){
throw new \Exception(sprintf('Could not install %s in %s',
'https://packages.frdl.de/raw/webfan/website/webfan.setup.php',
basename(__FILE__)));
}
}
require_once $webfatFile;
\frdlweb\StubRunner::getInstance()->autoloading();
//...start autoloading...
\Webfan\Patches\Start\Timezone2::defaults( );
//...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment