|
1 | | -# Sylius Blog Plugin |
| 1 | +<h1 align="center">Sylius Blog Plugin</h1> |
2 | 2 |
|
| 3 | +This plugin adds a blog to your Sylius project. It allows you to create blog articles, tags and authors. |
3 | 4 |
|
| 5 | +## Compatibility |
| 6 | + |
| 7 | +## Compatibility |
| 8 | + |
| 9 | +| Sylius Version | PHP Version | |
| 10 | +|---|---| |
| 11 | +| 1.12 | 8.1 - 8.2 | |
| 12 | +| 1.13 | 8.1 - 8.2 | |
4 | 13 |
|
5 | 14 | ## Installation |
6 | 15 |
|
7 | | -TBD |
| 16 | +If you want to use our recipes, you can add recipes endpoints to your composer.json by running this command: |
| 17 | + |
| 18 | +```bash |
| 19 | +composer config --no-plugins --json extra.symfony.endpoint '["https://api.github.com/repos/monsieurbiz/symfony-recipes/contents/index.json?ref=flex/master","flex://defaults"]' |
| 20 | +``` |
| 21 | + |
| 22 | +Install the plugin via composer: |
| 23 | + |
| 24 | +```bash |
| 25 | +composer require monsieurbiz/sylius-blog-plugin:dev-master |
| 26 | +``` |
| 27 | + |
| 28 | +<!-- The section on the flex recipe will be displayed when the flex recipe will be available on contrib repo |
| 29 | +<details><summary>For the installation without flex, follow these additional steps</summary> |
| 30 | +--> |
| 31 | + |
| 32 | +Change your `config/bundles.php` file to add this line for the plugin declaration: |
| 33 | + |
| 34 | +```php |
| 35 | +<?php |
| 36 | + |
| 37 | +return [ |
| 38 | + //.. |
| 39 | + MonsieurBiz\SyliusBlogPlugin\MonsieurBizSyliusBlogPlugin::class => ['all' => true], |
| 40 | +]; |
| 41 | +``` |
| 42 | + |
| 43 | +Add the plugin's routing by creating a new file in `config/routes/monsieurbiz_sylius_blog_plugin.yaml` with the following content: |
| 44 | + |
| 45 | +```yaml |
| 46 | +imports: |
| 47 | + resource: '@MonsieurBizSyliusBlogPlugin/Resources/config/config.yaml' |
| 48 | +``` |
| 49 | +
|
| 50 | +Add the plugin's routing by creating a new file in `config/routes/monsieurbiz_sylius_blog_plugin.yaml` with the following content: |
| 51 | + |
| 52 | +```yaml |
| 53 | +monsieurbiz_blog_plugin: |
| 54 | + resource: '@MonsieurBizSyliusBlogPlugin/Resources/config/routes.yaml' |
| 55 | +``` |
| 56 | + |
| 57 | +And finally, update your database: |
| 58 | + |
| 59 | +```bash |
| 60 | +bin/console doctrine:migrations:migrate |
| 61 | +``` |
| 62 | + |
8 | 63 |
|
9 | 64 | ## License |
10 | 65 |
|
11 | 66 | This plugin is under the MIT license. |
12 | | -Please see the [LICENSE](LICENSE) file for more information. |
| 67 | +Please see the [LICENSE](LICENSE) file for more information._ |
0 commit comments