2020-05-04 23:39:00 -05:00
# baikal-storage-plugin
2021-02-24 18:52:52 -06:00
## Note
Plugin is still a work in progress
2020-05-04 23:39:00 -05:00
## Install
```
composer require aerex/baikal-storage-plugin
```
2020-05-12 23:56:22 -05:00
## Configuration
2021-07-05 15:41:03 -05:00
You can use the CLI to help you generate a config file or use the example configuration provided in the project. Make sure the file is *writable* by your webserver (e.g Apache, Nginx).
### Use the CLI
2021-07-05 15:50:23 -05:00
Run the command `./vendor/bin/baikalstorage` and follow the instructions
2021-07-05 15:41:03 -05:00
### Manual
Copy the `example-config.yaml` file and rename it to `config.yaml` .
2020-05-12 23:56:22 -05:00
2020-05-04 23:39:00 -05:00
## Usage
2021-07-05 15:41:03 -05:00
- Add the plugin to the end of the `Server.php` file located under `Core/Frameworks/Baikal/Core/Server.php` . For example
2020-05-04 23:39:00 -05:00
```
2021-07-05 15:41:03 -05:00
$this->server->addPlugin(new \Aerex\BaikalStorage\Plugin(< absolute / path / of / config . yaml )
2020-05-04 23:39:00 -05:00
```