PHP code example of cammanderson / mmb-github
1. Go to this page and download the library: Download cammanderson/mmb-github library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
cammanderson / mmb-github example snippets
// 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;
});