This bundle provides persistency for your Github API requests
- Update readme file
- Add mongodb configuration files
- Add unit tests
- Comment methods and attributes
- Compatible with Doctrine ORM and ODM thanks to a generic repository.
- Authentication
- Command lines to retrieve github data, useful to work with crontabs
$ git submodule add git://github.com/ihqs/GithubBundle.git src/IHQS/GithubBundle $ git submodule add git://github.com/ihqs/php-github-api.git src/vendor/php-github-api
// src/autoload.php $loader->registerPrefixes(array( 'phpGitHubApi' => $vendorDir.'/php-github-api/lib', ));
// app/autoload.php $loader->registerNamespaces(array( 'IHQS' => __DIR__, // your other namespaces );
// app/AppKernel.php public function registerBundles() { return array( // ... new IHQS\GithubBundle\IHQSGithubBundle(), // ... ); }
ihqs_github: db_driver: [orm|mongodb] github: login: [your login] secret: [your password] type: [user|organization] (by default: user)
app/console doctrine:schema:update --force
If the path to your sf2 console is "app/console", then you'll just have to type
app/console ihqs:github:refresh