Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/sonofliberty/news-bundle
- Owner: sonofliberty
- Created: 2019-02-14T13:07:59.000Z (almost 6 years ago)
- Default Branch: develop
- Last Pushed: 2019-03-16T10:53:15.000Z (over 5 years ago)
- Last Synced: 2024-09-30T08:22:50.660Z (about 2 months ago)
- Topics: blog, news, symfony, symfony-bundle
- Language: PHP
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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'
```