PHPackages                             raphizim/protofast - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. raphizim/protofast

AbandonedArchivedLibrary[Testing &amp; Quality](/categories/testing)

raphizim/protofast
==================

Quickly create a HTML mocks without duplicating code

1.1.0(11y ago)017MITPHP

Since Nov 24Pushed 11y ago1 watchersCompare

[ Source](https://github.com/raphiz/protofast)[ Packagist](https://packagist.org/packages/raphizim/protofast)[ Docs](https://github.com/raphiz/protofast)[ RSS](/packages/raphizim-protofast/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Protofast
=========

[](#protofast)

[![Build Status](https://camo.githubusercontent.com/ac6af3c9b6229bb26ee970f28e4a83de19e675bcbeef8f274a3a022b4b73a491/68747470733a2f2f7472617669732d63692e6f72672f72617068697a2f70726f746f666173742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/raphiz/protofast)[![Dependency Status](https://camo.githubusercontent.com/98da8ecab3eb962a33f3b4f268fa3703ca316a0664fee4e32e94ccc1da3c0fbe/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3534373063326338383130313036613663633030303538642f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/5470c2c8810106a6cc00058d)[![Latest Stable Version](https://camo.githubusercontent.com/695fe7e88804c46105865a70b0ad1cf612e89964fc5c39a1d011842f5c22b311/68747470733a2f2f706f7365722e707567782e6f72672f72617068697a696d2f70726f746f666173742f76657273696f6e2e737667)](https://packagist.org/packages/raphizim/protofast)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/d00e00e5720d0e58caa81b9d9df47b75e5262443b41f5fcb2c9d3b36da02ca86/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f72617068697a2f70726f746f666173742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/raphiz/protofast/?branch=master)[![Code Climate](https://camo.githubusercontent.com/c3036ef98ca286ef1959649616b195ffd5614fbaa58e81a7f3c3ef439c9ddf91/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f72617068697a2f70726f746f666173742f6261646765732f6770612e737667)](https://codeclimate.com/github/raphiz/protofast)[![Test Coverage](https://camo.githubusercontent.com/1b0f0e52f019479d074534b89f32b3e501b287ca1293b976504b6147f5724da4/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f72617068697a2f70726f746f666173742f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/raphiz/protofast)

Introduction
------------

[](#introduction)

Protofast is an easy to use solution to quickly create HTML mockup websites.

Protofast works with PHP &gt;= 5.3 and hhvm.

I use this to design a plain HTML layout before I start to write any code. The projects stakeholder can play around with this prototype and give instant feedback concerning the UI. Experiments with new UI-Concepts are cheap this way. When the final draft is accepted from all parties, the actual implementation begins.

But what does Protofast do? Protofast provides a very basic "template engine". One base template is defined. It declares some variables in which each site can put specific values. For example the page title and the main contents. This prevents you from copy-paste the first HTML file and modify only some specific parts. Additionally, Protofast provides a couple of "goodies" to make the development faster and easier. For example, Protofast automatically includes stylesheets and scripts that are called similar to the prototype.

The concept is easy to grasp if you take a closer look to the sample project or just follow the quickstart guide (see below) and start experimenting. For the sample project, clone this repository, chdir into the "example\_project" directory and run `php -S localhost:8000` you can see it in action. It is highly recommended to take a look in the protofast.php file since not all functionality is documentated so far.

Disclaimer
----------

[](#disclaimer)

This is not a framework to use in production! Think before use it with clients. It is not always a good idea to show a HTML Mockup because it implies for normal human beings that most of the work is already done!

Quick start
-----------

[](#quick-start)

On a Unix based system, paste the following commands (curl must be installed):

```
  mkdir my_project
  cd my_project
  bash
