2017 © Pedro Peláez
 

symfony-bundle blog-bundle

Simple Symfony blog/cms

image

harentius/blog-bundle

Simple Symfony blog/cms

  • Thursday, May 3, 2018
  • by harentius
  • Repository
  • 2 Watchers
  • 9 Stars
  • 277 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 2 Forks
  • 7 Open issues
  • 35 Versions
  • 4 % Grown

The README.md

Symfony Blog Bundle

codecov Maintainability Scrutinizer Code Quality, (*1)

A Symfony Bundle for adding simple blog functionality to existing or new Symfony project.
Subsplit from 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., (*2)

Installation

  1. Install the bundle
$ composer.phar require harentius/blog-bundle
  1. Add bundles (in config/bundles.php or Kernel):
<?php
// config/bundles.php

return [
//...
    Harentius\BlogBundle\HarentiusBlogBundle::class => ['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],
];
  1. Include routes:
# config/routes.yaml
blog:
    resource: "@HarentiusBlogBundle/Resources/config/routing.yaml"
    prefix:   /
  1. Include default configs: Note: this step can be skipped if you decide to configure bundles (i.e. DoctrineBundle, SecurityBundle, etc) yourself
# config/packages/harentius_blog.yaml
imports:
    - { resource: '@HarentiusBlogBundle/Resources/config/config.yaml' }

Configuration

Config reference:, (*3)

harentius_blog:
    title: Blog Title
    theme: default|dark # default dark
    highlight_code: true|false # load highlight js library or not, default false
  1. Create/Update your DB according to chosen installation type
bin/console doctrine:database:create
bin/console doctrine:schema:create
  1. Install assets
bin/console assets:install

The Versions

14/02 2016

v1.0.0

1.0.0.0 https://github.com/harentius/blog-bundle

Simple Symfony blog/cms

  Sources   Download

MIT

The Requires

 

harentius blog bundle symfony cms