Skip to content

Instantly share code, notes, and snippets.

@stefanotorresi
Created March 22, 2017 15:04
Show Gist options
  • Save stefanotorresi/fe1e35cc83feace0a8da0a1f6cca3615 to your computer and use it in GitHub Desktop.
Save stefanotorresi/fe1e35cc83feace0a8da0a1f6cca3615 to your computer and use it in GitHub Desktop.
Psysh default config that adds Composer autoloader automagically. Save it in `~/.config/psysh`.
<?php
$defaultIncludes = [];
$composerAutoload = getcwd() . DIRECTORY_SEPARATOR . '/vendor/autoload.php';
if (is_file($composerAutoload)) {
$defaultIncludes[] = $composerAutoload;
}
return [
'defaultIncludes' => $defaultIncludes,
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment