Nov
19
2010
0

Filesystem fixtures for symfony

This is just a quick post to provide a landing page for a new symfony plugin I’ve created: sfFilesystemFixturesPlugin. I’m not going to explain the plugin in detail here, all the information you need is on the plugin’s readme page.

In a nutshell, the plugin lets you populate a symfony project with filesystem data like images and thumbnails in much the same way as you would populate a database using regular symfony fixtures.

Feel free to leave questions, comments, and bug reports in the comments.

Jun
10
2010
8

Per-environment fixtures in symfony

UPDATE:

I have now packaged this script into a symfony plugin called sfEnvironmentFixturesPlugin. Check it out and hit the ‘I use it’ link if you find it useful!

Feel free to leave questions, comments, and bug reports in the comments.

Symfony‘s fixtures are a great way to set up initial data and/or test data for a system. Whenever I create a new symfony project however, I always find myself wishing there was an easy way to specify which fixtures contain data required for production systems (the ‘initial’ data) and which contain data that I only need when developing (the ‘test’ data).

I recently started such a project and came across a reasonably elegant solution. With a simple YAML file placed in your fixtures directory, you too can have such a set up if so desired.

(more…)