cammanderson / mmb-github
Github Article Service for mmb
v1.0-alpha
2014-08-19 10:47 UTC
Requires
- php: >=5.4.0
- cammanderson/mmb: @dev
- knplabs/github-api: ~1.2
Requires (Dev)
- phpunit/phpunit: ~4.1
This package is not auto-updated.
Last update: 2024-12-31 04:12:11 UTC
README
Github Article Service for Minimalist Markdown Blog Check-in your blog articles to your github account and make them accessible to your blog.Supports branching strategy, allowing you to configure your local blog to read a separate branch.
Usage
Composer
{ "require": { "cammanderson/mmb" : "@dev" "cammanderson/mmb-github" : "@dev" } }
Update your pimple
// Silex configuration $app->register(new MMB\ArticleServiceProvider()); // Specify articles to be sourced from github $app['article_service'] = $app->share(function ($app) { $githubService = new \MMB\Github\GithubArticleService('cammanderson', 'mmb-github-example', 'master'); $githubService->setProvider($app['article_provider']); return $githubService; });
Configuration
- Branch (e.g. look to master)
- Github Authentication (for private github repositories)
- Regular expressions for matching article naming convention