You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 3, 2026. It is now read-only.
Sean Molenaar edited this page Feb 21, 2018
·
7 revisions
!!!WORK IN PROGRESS!!!
General info
Templates are "simple" php infused HTML files. Well, they're simple if you know some PHP. But you probably do as you're running this PHP based devtool.
The current setup of templates allows you to take any name you want for a template. As long as there's a .phtml, .css and .js file that php-drafter can find in your include path or apib path that carries the same name.
You have several structure options for this:
PHPDraft also has a material design theme which you can use the -t material flag for. This theme has customisable colours. Those colours can be found here: https://getmdl.io/customize/index.html. You can pass them to the parser using environment variables, for example COLOR_PRIMARY=grey; COLOR_SECONDARY=orange.