Download the PHP package matks/markdown-blog-bundle without Composer
On this page you can find all versions of the php package matks/markdown-blog-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download matks/markdown-blog-bundle
More information about matks/markdown-blog-bundle
Files in matks/markdown-blog-bundle
Package markdown-blog-bundle
Short Description Markdown files based Bundle to integrate a simple blog in your Symfony application
License MIT
Homepage https://github.com/matks/MarkdownBlogBundle
Informations about the package markdown-blog-bundle
MarkdownBlogBundle
Markdown files based Bundle to integrate a simple blog in your Symfony application

Installation
Require the bundle
Enable the bundle in your Symfony application
Configure the bundle
Usage
Write your Markdown posts using your favorite Markdown Editor. Then copy them in your folder __posts_directory__.
The post title will be parsed from the file name.
Write a library_register.yml file in the folder posts_directory which will provide your posts metadata.
Example:
For each blog entry, the entry name must match the Markdown file name. Available metadata is
- date (string, format YYYY-MM-DD)
- category (string)
- tags (array of strings)
- alias (string) ; overrides your post name
If there is a file but no entry in the register, the Post will still be available, however the publish date will be computed from the file creation timestamp.
That's it ! Your blog data structure is available through the service markdown_blog.library
(class Library).
You can get your posts using the following functions:
You can now display your blog using any template you want. Example:
You can have a look at the markdown-blog-bundle-example. It displays a blog using bootstrap templates.
Tests
Stand alone context
In a bundle isolation context, just install the dev dependencies with composer
Run the unit tests suite with atoum binary
Run functional tests with behat binary using the Symfony2 fixture application
All versions of markdown-blog-bundle with dependencies
symfony/config Version >=2.8
symfony/validator Version >=2.8
symfony/yaml Version >=2.8
symfony/dependency-injection Version >=2.8
symfony/http-kernel Version >=2.8
symfony/http-foundation Version >=2.8
symfony/serializer Version >=2.8
erusev/parsedown Version ^1.6