https://github.com/exercise/countrybundle
https://github.com/exercise/countrybundle
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/exercise/countrybundle
- Owner: Exercise
- Created: 2010-11-03T13:39:44.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2012-04-02T14:31:02.000Z (almost 14 years ago)
- Last Synced: 2025-10-29T02:18:45.334Z (5 months ago)
- Language: PHP
- Homepage:
- Size: 195 KB
- Stars: 11
- Watchers: 13
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Installation
============
1. Add this bundle to your project as a Git submodule:
$ git submodule add git@github.com:Exercise/CountryBundle.git src/Exercise/CountryBundle
2. Add this bundle to your application's kernel:
// application/ApplicationKernel.php
public function registerBundles()
{
return array(
// ...
new Exercise\CountryBundle\ExerciseCountryBundle(),
// ...
);
}
3. Populate your database with countries defined in the csv file:
php exercise/console app:data:load --fixtures=src/Exercise/CountryBundle/Resources/data/fixtures/doctrine/mongodb
Example Usage
-----------------------------
1. Load all countries:
$this['doctrine.odm.mongodb.document_manager']->getRepository('ExerciseCountryBundle:Country')->findAll();
License
-----------------------------
Distributed under MIT License
Full license [Resources/meta/LICENSE](https://github.com/Exercise/CountryBundle/blob/master/Resources/meta/LICENSE)