Download the PHP package ivopetkov/html-server-components-compiler without Composer
On this page you can find all versions of the php package ivopetkov/html-server-components-compiler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ivopetkov/html-server-components-compiler
More information about ivopetkov/html-server-components-compiler
Files in ivopetkov/html-server-components-compiler
Package html-server-components-compiler
Short Description HTML Server Components compiler
License MIT
Homepage https://github.com/ivopetkov/html-server-components-compiler
Informations about the package html-server-components-compiler
HTML Server Components compiler (in PHP)
A brand new way to build websites
It's a simple idea:
Instead of using template engines or PHP includes in your HTML code use the <component> tag. It allows you to:
- Include code from other files (
<component src="file:header.php"/>
). - Pass arguments (
<component src="file:content.php" pageID="home"/>
) that are available in the file ($component->getAttribute('pageID')
or just$component->pageID
). - Automatically places the included file HTML code into the proper places (Tags in the
head
go in the parent documenthead
). - Makes easy to test each component because each component outputs full HTML code.
Install via Composer
Usage
Documentation
Full documentation is available as part of this repository.
Demo
A demo is available at http://ivopetkov.github.io/demos/html-server-components/. The source is also there.
License
This project is licensed under the MIT License. See the license file for more information.
Contributing
Feel free to open new issues and contribute to the project. Let's make it awesome and let's do in a positive way.
Author
This library is created and maintained by Ivo Petkov (ivopetkov.com).