Download the PHP package corex/site without Composer
On this page you can find all versions of the php package corex/site. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package site
Site
The purpose of this package is to keep it simple and make it possible to quickly setup a site (html, template). Setting up a site is easy and requires only few steps.
Templates (Layout / View)
Layouts and views are based on package corex/template (mustache). Look at readme for package corex/template to see syntax.
- Standard template (standard.html) is a simple html template and is default.
- If bootstrap theme is specified, a bootstrap template (bootstrap-x.y.z.html) is used instead of simple html template.
- It is possible to set specific Bootstrap version by calling Bootstrap::setVersion(Bootstrap::VX_Y_Z);. If not specified, latest version is chosen.
- It is possible to override templates by setting a new path and use the same name.
- A layout contains main template for a page. It is possible to override standard template by setting a new location for layout templates. It is also possible to specify a new template name.
- A view is a simple template i.e. the body.
- A view can be used inside a view. It is automatically rendered.
Following variables are supported
- title - Ttle of page.
- body - Body og page.
- error - Error message placed on top of page.
Bootstrap versions supported: 4.5.2, 4.3.1, 4.1.3
Config
Examples
Theme "slate", inject view with some text into a layout.
All versions of site with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.2
corex/helpers Version ^2.2
corex/filesystem Version ^2.0
corex/template Version ^2.1
corex/helpers Version ^2.2
corex/filesystem Version ^2.0
corex/template Version ^2.1
The package corex/site contains the following files
Loading the files please wait ....