https://github.com/harentius/blog-bundle
Symfony Bundle for adding simple blog functionality to existing or new Symfony project.
https://github.com/harentius/blog-bundle
blog symfony symfony-blog symfony-bundle
Last synced: 3 months ago
JSON representation
Symfony Bundle for adding simple blog functionality to existing or new Symfony project.
- Host: GitHub
- URL: https://github.com/harentius/blog-bundle
- Owner: harentius
- License: mit
- Archived: true
- Created: 2015-11-01T15:19:08.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-12-31T14:09:20.000Z (6 months ago)
- Last Synced: 2025-03-27T11:51:24.622Z (3 months ago)
- Topics: blog, symfony, symfony-blog, symfony-bundle
- Language: PHP
- Homepage:
- Size: 2.98 MB
- Stars: 19
- Watchers: 4
- Forks: 7
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Symfony Blog Bundle
[](https://codecov.io/gh/harentius/blog-bundle)
[](https://codeclimate.com/github/harentius/blog-bundle/maintainability)
[](https://scrutinizer-ci.com/g/harentius/blog-bundle/?branch=master)A Symfony Bundle for adding simple blog functionality to existing or new Symfony project.
Subsplit from [harentius/blog](https://github.com/harentius/blog) minimalistic blogging engine, which is designed to use Markdown files for content and transform them into blogs, and harentius/blog only stores and shows blogs.## Installation
1. Install the bundle
```bash
$ composer.phar require harentius/blog-bundle
```2. Add bundles (in config/bundles.php or Kernel):
```php
['all' => true],
//...
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true],
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],
Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true],
Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle::class => ['all' => true],
Knp\Bundle\PaginatorBundle\KnpPaginatorBundle::class => ['all' => true],
];
```3. Include routes:
```yml
# config/routes.yaml
blog:
resource: "@HarentiusBlogBundle/Resources/config/routing.yaml"
prefix: /
```4. Include default configs:
*Note: this step can be skipped if you decide to configure bundles (i.e. DoctrineBundle, SecurityBundle, etc) yourself*```yml
# config/packages/harentius_blog.yaml
imports:
- { resource: '@HarentiusBlogBundle/Resources/config/config.yaml' }
```## Configuration
Config reference:```yml
harentius_blog:
title: Blog Title
theme: default|dark # default dark
highlight_code: true|false # load highlight js library or not, default false
```5. Create/Update your DB according to chosen installation type
```bash
bin/console doctrine:database:create
bin/console doctrine:schema:create
```6. Install assets
```bash
bin/console assets:install
```