Download the PHP package rockstarcode/markdb without Composer
On this page you can find all versions of the php package rockstarcode/markdb. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package markdb
MarkDB - MarkDown Database for Blogs/CMSs
MarkDB is an engine that allows you to use MarkDown + Yaml files as data points for your CMS or Blog.
The intent is allow you to separate content creation from the platform which controls your application design. This allows you to write your blog or project in any method you'd like and attach content as if it were database driven.
This project stemmed from my blog at RockstarCode where I didnt want to have to design my site via a CMS like OctoberCMS or Wordpress which would force me to write posts via their interface, nor did I want to store content in a database which needed to be sync'd.
The solution I chose was to create a flat file .git repo to house my articles and MarkDB was the interface to collect and manage posts.
This allows me to write posts and preview them locally before pushing them to different environments by simple git push.
Features
- Pretty URL slug to identify files or directories
- Customize settings per file/directory
- Use a git repo to version control your data points
- Simple search for articles via attributes
- [FUTURE] - caching
Libraries vs Articles
MarkDB will look for files and directories given a $base path
From there it will provide a list of Libraries (directories) and Articles (Files)
Libraries hold collections of child libraries and all child articles to allow you to loop thru if needed to create navigation. For example you may have a base blog with navigation on various topics [Rants, Tutorials, Personal Thoughts] Your base new MarkDB('/path/to/blog/data') would house 3 libraries Rants, Tutorials, Personal Thoughts which you can use to pull unique data from or link to
Articles house file information in both YAML & MarkDown which you can use to customize data and presentation.
Everything between will be processed as yaml, below the second will be processed as markdown
Requirements
LibYaml & pecl yaml for PHPUpdated to symfony/yaml to remove dependency- Carbon for data time
Installation
Usage
Laravel
MarkDB comes with a Laravel 5.* Service Provider which will add MarkDB as a facade to your application
a sample route to see articles in Laravel :
Tutorial
I created a simple Lumen + MarkDB tutorial which steps you thru basic usage
License
Released under MIT license, feel free to use, modify, contribute changes.
All versions of markdb with dependencies
nesbot/carbon Version ~1.14
erusev/parsedown Version ^1.6
symfony/yaml Version >=v2.7.6