A simple PHP based tool for creating websites that have:
- Short lifespan
- Simple content requirements
- No CMS
- Multi-language content
This tool is not intended for complex websites, but rather non-database driven sites that need to be produced rapidly and with minimal effort. To that end the tool offers:
- Intelligble template folder structure linked directly to URL paths (e.g. /page/test sits in /templates/page/test.php)
- Simple internationalisation with YAML based translation file(s) and URL path prefixes (e.g. /fr/page/test)
- Pre-configured SASS .scss file with variables defined for common layout customisation
- jQuery 1.9.1 and an application.js file containing common javascript functions and legacy browser HTML5 DOM element support
- CSS3 PIE for legacy browser support
- PHP 4+
- YAML - PHP PECL Extension
- SASS (optional)
- Checkout a copy of the code in a directory of your choice
- Configure apache (or your chosen web server) with the 'web' folder as the DocumentRoot directive and ensure that directory allows .htaccess overrides
- Add some translations to the config/translations.yml file - you'll see there's already an en.yml and fr.yml file
- Add some templates to the templates folder - there is already an error/404.php template used for 404 errors
- Tweak the layout which is at web/index.php
- Watch the stylesheet with SASS using the command
sass --watch styles.scss:styles.css - Edit away!
Written and maintained by Charlie Hawker. Occasional blogger at Too Many Redirects.