Download the PHP package cammanderson/mmb without Composer
On this page you can find all versions of the php package cammanderson/mmb. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cammanderson/mmb
More information about cammanderson/mmb
Files in cammanderson/mmb
Package mmb
Short Description Minimalist markdown blogging tool
License LGPL-3.0
Informations about the package mmb
Minimalist Markdown Blog
Focus on writing clean blog articles using simple markdown. Include beautiful colourful fenced code blocks that people will love.
Minimalistic approach, based on silex. Chose where to store and retrieve your markdown, I'm using a separate git repository. Articles are pushed here and mapped by the FileArticleService.
Usage
For your application:
- Add to your composer
- Add to your Silex application
- Install Pygments
- Specify the pygmentize bin
- Specify the path to the articles (default file provider)
Composer
Silex Service Provider and Route
You can add the article service and then use it in your application as needed.
Default Configuration
Currently needs a couple of elements set to app['config']['parameters']
Consider using a YAML config provider for silex deralex/yaml-config-service-provider
Writing Articles
Using the FileArticleService, it will take a configuration path to look for files. Articles are mapped by key, where the key matches the filename.
2014-08-10_my-article.md
2014-08-12_my-other-article.md
Hosting articles on github
It is easily possible to place the articles in your github repository and connect to it using GithubService for mmd.
Extending
Alternative location for Articles
You can always implement your own ArticleService to source the articles from another location.
Now register to the dependency injector (remember to provider the article provider).
TODO
Eventually to be moved to MCB (Minimalist Coders Blog) for more broader use. Developers can then implement their own article providers (file, git, cmf etc), formating and highlighters (e.g. pygments, geshi etc).
- Add various traits to article to support dates, author, version, changelog etc
- Implement a GitArticleService/GitHubArticleService that interrogates git for author, versions, etc
- Implement a better configuration layout
- Implement ArticleService list commands, allowing listings of blog history
- Possible Symfony2 support via DI/Service container config
- Implement geshi/sundown/restructedtext etc.
All versions of mmb with dependencies
silex/silex Version ~1.2
symfony/yaml Version ~2.4
symfony/process Version dev-master
erusev/parsedown Version dev-master
deralex/yaml-config-service-provider Version ~1
symfony/finder Version ~2.5