# visualizer/3.4.8/vendor/phpoffice/phpspreadsheet/src/Bootstrap.php

Visualizer – Tables &amp; Charts Manager with Built-in AI Generator, version 3.4.8. 23 lines.

- Page: https://pluginprobe.com/plugins/visualizer/3.4.8/code/vendor/phpoffice/phpspreadsheet/src/Bootstrap.php
- Raw: https://pluginprobe.com/plugins/visualizer/3.4.8/raw/vendor/phpoffice/phpspreadsheet/src/Bootstrap.php
- Modified: 2020-09-29T13:44:18+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/visualizer/3.4.8/code/vendor/phpoffice/phpspreadsheet/src/Bootstrap.php#L10-L20`.

```php
<?php

/**
 * Bootstrap for PhpSpreadsheet classes.
 */

// This sucks, but we have to try to find the composer autoloader

$paths = [
    __DIR__ . '/../vendor/autoload.php', // In case PhpSpreadsheet is cloned directly
    __DIR__ . '/../../../autoload.php', // In case PhpSpreadsheet is a composer dependency.
];

foreach ($paths as $path) {
    if (file_exists($path)) {
        require_once $path;

        return;
    }
}

throw new \Exception('Composer autoloader could not be found. Install dependencies with `composer install` and try again.');

```
