# wp-optimize/3.2.3/vendor/robloach/component-installer/src/bootstrap.php

WP-Optimize – Cache, Compress images, Minify &amp; Clean database to boost page speed &amp; performance, version 3.2.3. 26 lines.

- Page: https://pluginprobe.com/plugins/wp-optimize/3.2.3/code/vendor/robloach/component-installer/src/bootstrap.php
- Raw: https://pluginprobe.com/plugins/wp-optimize/3.2.3/raw/vendor/robloach/component-installer/src/bootstrap.php
- Modified: 2021-06-07T22:42:16+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/wp-optimize/3.2.3/code/vendor/robloach/component-installer/src/bootstrap.php#L10-L20`.

```php
<?php

/*
 * This file is part of Component Installer.
 *
 * (c) Rob Loach (http://robloach.net)
 *
 * For the full copyright and license information, please view the LICENSE.md
 * file that was distributed with this source code.
 */

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;

```
