Download the PHP package egulias/egulias-provinces-bundle without Composer
On this page you can find all versions of the php package egulias/egulias-provinces-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download egulias/egulias-provinces-bundle
More information about egulias/egulias-provinces-bundle
Files in egulias/egulias-provinces-bundle
Package egulias-provinces-bundle
Short Description Bundle for provinces
License MIT
Homepage http://git.ideup.com/egulias/EguliasProvincesBundle.git
Informations about the package egulias-provinces-bundle
Provinces bundle for Symfony2/Doctrine2
This bundle is intended to allow you to easily have the basic structure of regions-provinces of a given country (or all, I hope).
Installation and configuration:
Get the bundle
Add to your /deps
file :
- Side note: if you want provinces and regions in the database, you will need
doctrine-fixtures
andDoctrineFixturesBundle
And make a php bin/vendors install
.
Register the namespace
- Installation note for Database fixtures: Also add this to registerNamespaces
Add EguliasProvincesBundle to your application kernel
- Installation note for Database fixtures: Also add
Usage
-
Without a database Just
use
the needed localizedEntity
for regions or provinces (as of this writing, only SpainProvince) and use the provided methods. -
With Database Features have been removed, but will be available soon
- First you'll need to do a
app/console doctrine:schema:update --force
(or--dump-sql
first to see the sql to be executed) to generate the db tables. -
Secondly you'll need to dump data with
If you want just to dump specific countries data, just point to the corresponding data fixture (e.g LoadSpanishRegions)
- First you'll need to do a