Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sonofliberty/news-bundle

Symfony bundle with simple blog / publishing features. This is a work in progress.
https://github.com/sonofliberty/news-bundle

blog news symfony symfony-bundle

Last synced: about 1 month ago
JSON representation

Symfony bundle with simple blog / publishing features. This is a work in progress.

Awesome Lists containing this project

README

        

# news-bundle

[![Build Status](https://travis-ci.com/sonofliberty/news-bundle.svg?branch=develop)](https://travis-ci.com/sonofliberty/news-bundle)

Symfony bundle with simple blog / publishing features

## Installation

1. Install via composer

`composer require sonofliberty/news-bundle`

2. Enable bundle

```php
// app/AppKernel.php

public function registerBundles()
{
return array(
// ...
new SonOfLiberty\NewsBundle\SonOfLibertyNewsBundle(),
new Knp\Bundle\PaginatorBundle\KnpPaginatorBundle(),
new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(), // needed for translations
// ...
);
}
```

3. Configuration

```yml
# app/config/config.yml

son_of_liberty_news:
author:
class: Acme\AcmeBundle\Entity\User # optional
```

4. Import routing

```yml
# app/config/routing.yml

son_of_liberty_news:
prefix: /news
resource: '@SonOfLibertyNewsBundle/Resources/config/routing.yaml'
```