wireframe-framework / wireframe
Wireframe is an output framework for ProcessWire CMS/CMF.
Fund package maintenance!
teppokoivula
Installs: 1 559
Dependents: 2
Suggesters: 0
Security: 0
Stars: 20
Watchers: 7
Forks: 1
Open Issues: 1
Type:pw-module
Requires
- php: >=7.1
- processwire/processwire: >=3.0.112
- wireframe-framework/processwire-composer-installer: ^1.0.0
- dev-master
- 0.30.0
- 0.29.2
- 0.29.1
- 0.29.0
- 0.28.0
- 0.27.1
- 0.27.0
- 0.26.2
- 0.26.1
- 0.26.0
- 0.25.0
- 0.24.2
- 0.24.1
- 0.24.0
- 0.23.1
- 0.22.2
- 0.22.1
- 0.22.0
- 0.21.3
- 0.21.2
- 0.21.1
- 0.21.0
- 0.20.2
- 0.20.1
- 0.20.0
- 0.19.2
- 0.19.1
- 0.19.0
- 0.18.3
- 0.18.2
- 0.18.1
- 0.18.0
- 0.17.1
- 0.17.0
- 0.16.0
- 0.15.2
- 0.15.1
- 0.15.0
- 0.14.0
- 0.13.2
- 0.13.1
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.2
- 0.10.1
- 0.10.0
- 0.9.1
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.2
- 0.5.1
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.1
- 0.2.0
- 0.1.0
- 0.0.16
- 0.0.15
- 0.0.14
- 0.0.13
- 0.0.12
This package is auto-updated.
Last update: 2024-12-01 10:17:10 UTC
README
Wireframe is, in the lack of a better term, an output framework for the ProcessWire CMS/CMF. It loosely follows the MVC (Model-View-Controller) architecture, introducing concepts such as View Controllers to ProcessWire site development.
Technically Wireframe is a combination of a ProcessWire module - called Wireframe - and a set of related classes. Certain features are bundled into a separate module called Wireframe API; this optional companion module can be used to quickly set up a JSON based API.
This README file provides basic instructions for setting Wireframe up. More detailed instructions can be found from https://wireframe-framework.com, and if you'd like to see an example site using Wireframe, be sure to check out https://github.com/wireframe-framework/site-wireframe-boilerplate/.
Getting started
- Download and install the Wireframe ProcessWire module
There are a couple of ways to get the module:
- Clone or download from GitHub: https://github.com/wireframe-framework/Wireframe
- Install using Composer: https://packagist.org/packages/wireframe-framework/wireframe
- Set up the Wireframe directories within the
/site/templates/
directory
If your site already has identically named folders you can call them something else, as long as you
also adjust the paths in config settings ($config->wireframe
array) accordingly. For more details
visit https://wireframe-framework.com/docs/configuration-settings/.
Alternatively you can install the site-wireframe-boilerplate site profile, available from GitHub: https://github.com/wireframe-framework/site-wireframe-docs. This is a complete site running on Wireframe, so you may find it useful if you're just starting a new project, but it's not something you'd want to use if you've already got an existing site set up.
- Copy
wireframe.php
from the module's directory to/site/templates/wireframe.php
This is the file that bootstraps Wireframe. If you want to pass variables to Wireframe during init or render phases, you can directly modify this file.
- Add
wireframe
as the alternate filename of the template(s) you want to use Wirerame for
This can be done via the Alternate Template Filename setting found from the template edit screen, and will redirect requests for pages using those templates through the Wireframe bootstrap file.
Note: you don't actually have to route all your templates through Wireframe. In case you want to use other output strategies for some of your templates, that will work just fine: just skip step 4 for those templates.
Resources
- An introduction to Wireframe and output strategies in general: https://wireframe-framework.com/about/
- A more in-depth getting started guide for Wireframe: https://wireframe-framework.com/getting-started/
- Wireframe documentation: https://wireframe-framework.com/docs/
- Support forum: https://processwire.com/talk/forum/61-wireframe/
License
This project is licensed under the Mozilla Public License Version 2.0.