# code-snippets/3.0.0/trunk/vendor/composer/installers/src/bootstrap.php

Code Snippets, version 3.0.0. 14 lines.

- Page: https://pluginprobe.com/plugins/code-snippets/3.0.0/code/trunk/vendor/composer/installers/src/bootstrap.php
- Raw: https://pluginprobe.com/plugins/code-snippets/3.0.0/raw/trunk/vendor/composer/installers/src/bootstrap.php
- Modified: 2022-05-13T18:03:36+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/code-snippets/3.0.0/code/trunk/vendor/composer/installers/src/bootstrap.php#L10-L20`.

```php
<?php
function includeIfExists($file)
{
    if (file_exists($file)) {
        return include $file;
    }
}
if ((!$loader = includeIfExists(__DIR__ . '/../vendor/autoload.php')) && (!$loader = includeIfExists(__DIR__ . '/../../../autoload.php'))) {
    die('You must set up the project dependencies, run the following commands:'.PHP_EOL.
        'curl -s http://getcomposer.org/installer | php'.PHP_EOL.
        'php composer.phar install'.PHP_EOL);
}
return $loader;

```
