An small bundle for humanity

Finally out!

I've just finished what was left to release my first Symfony 2 bundle: EguliasProvincesBundle (atGithub).

The idea behind this small bundle is to allow in an easy way access to regions/provinces of different countries with or without a database.

It defines to entities (Region & Province) which persist to the database and, as of this post, another two non-persistent entities for Spain: SpainRegion and SpainProvince. Those appended with the country name works with PHP arrays to store the information thus not needing a database, with methods that alow to get all the information. Despite I didn't initially set any inheritance neither an interface I haven't leave the idea that they may be needed. Maybe an abstract class with a simple implementation and as guide or an interface with just the declartion; I have defnied nothing on the readme so developers may found themselves a bit lost.

I hope in the next days to work on this issue to allow those who want to easily extend.

And now... let's clone!!!

 

Share

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.