Use Soflomo\Prototype for quick website prototypes

Today we at Soflomo released Soflomo\Prototype, a new Zend Framework 2 module. The module is just in use for about a couple of hours, but it already saves us so much work, we would like to share it. It is available under the New BSD (3 clause) license, feel free to use it!

The goal is to make it extremely easy inside Zend Framework 2 to start prototyping html pages. Designers and frontend developers currently often have to wait for a Zend Framework 2 developer to create a couple of routes, link them to a controller, assign the right view script and enable this all in a module. With Soflomo\Prototype, you simply say url /foo/bar must render /foo/bar.phtml. Nothing more.

The configuration is kept extremely simple, to (note: sarcasm!) even let frontend developers use Zend Framework 2. The base configuration looks like this:

'foo' => array(
  'route' => '/foo',
  'template' => 'mockup/foo',
'bar' => array(
  'route' => '/bar',
  'template' => 'mockup/bar'

There you have two pages, "foo" and "bar". If you hit /foo, the mockup/foo.phtml will be rendered. If you load /bar the mockup/bar.phtml template will be used. Simple, huh?

It is recommended to load Soflomo\Prototype via composer and put all your custom mockups inside a separate module. This allows you to keep all mockup files together and when you start the development of you app, you copy/paste the mockups to the other modules.

A last note, you might wonder what you need to do with navigation. I suggest you use the basic, default navigation configuration as explained in the manual. You can build a navigation structure there and without much hassle you have menus, breadcrumbs and so on linked to the mockup pages.