2017 © Pedro Peláez
 

library html-server-components-compiler

HTML Server Components compiler

image

ivopetkov/html-server-components-compiler

HTML Server Components compiler

  • Thursday, July 12, 2018
  • by ivopetkov
  • Repository
  • 1 Watchers
  • 8 Stars
  • 1,349 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 28 Versions
  • 11 % Grown

The README.md

HTML Server Components compiler (in PHP)

A brand new way to build websites, (*1)

It's a simple idea:, (*2)

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 document head). - Makes easy to test each component because each component outputs full HTML code., (*3)

Latest Stable Version License, (*4)

Install via Composer

composer require ivopetkov/html-server-components-compiler

Usage

$compiler = new IvoPetkov\HTMLServerComponentsCompiler();
echo $compiler->process('
<html>
    <body>
        <component src="file:header.php"/>
        <component src="file:content.php" pageID="home"/>
        <component src="file:footer.php"/>
    </body>
</html>
')

Documentation

Full documentation is available as part of this repository., (*5)

Demo

A demo is available at http://ivopetkov.github.io/demos/html-server-components/. The source is also there., (*6)

License

This project is licensed under the MIT License. See the license file for more information., (*7)

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., (*8)

Author

This library is created and maintained by Ivo Petkov (ivopetkov.com)., (*9)

The Versions

12/07 2018

dev-master

9999999-dev https://github.com/ivopetkov/html-server-components-compiler

HTML Server Components compiler

  Sources   Download

MIT

The Requires

 

The Development Requires

html html server components compiler

12/07 2018

v0.6.5

0.6.5.0 https://github.com/ivopetkov/html-server-components-compiler

HTML Server Components compiler

  Sources   Download

MIT

The Requires

 

The Development Requires

html html server components compiler

21/06 2018

v0.6.4

0.6.4.0 https://github.com/ivopetkov/html-server-components-compiler

HTML Server Components compiler

  Sources   Download

MIT

The Requires

 

The Development Requires

html html server components compiler

21/06 2018

v0.6.3

0.6.3.0 https://github.com/ivopetkov/html-server-components-compiler

HTML Server Components compiler

  Sources   Download

MIT

The Requires

 

The Development Requires

html html server components compiler

04/08 2017

v0.6.2

0.6.2.0 https://github.com/ivopetkov/html-server-components-compiler

HTML Server Components compiler

  Sources   Download

MIT

The Requires

 

The Development Requires

html html server components compiler

03/08 2017

v0.6.1

0.6.1.0 https://github.com/ivopetkov/html-server-components-compiler

HTML Server Components compiler

  Sources   Download

MIT

The Requires

 

The Development Requires

html html server components compiler

25/07 2017

v0.6.0

0.6.0.0 https://github.com/ivopetkov/html-server-components-compiler

HTML Server Components compiler

  Sources   Download

MIT

The Requires

 

The Development Requires

html html server components compiler

14/06 2017

v0.5.6

0.5.6.0 https://github.com/ivopetkov/html-server-components-compiler

HTML Server Components compiler

  Sources   Download

MIT

The Requires

 

The Development Requires

html html server components compiler

07/06 2017

v0.5.5

0.5.5.0 https://github.com/ivopetkov/html-server-components-compiler

HTML Server Components compiler

  Sources   Download

MIT

The Requires

 

The Development Requires

html html server components compiler

07/06 2017

v0.5.4

0.5.4.0 https://github.com/ivopetkov/html-server-components-compiler

HTML Server Components compiler

  Sources   Download

MIT

The Requires

 

The Development Requires

html html server components compiler

04/06 2017

v0.5.3

0.5.3.0 https://github.com/ivopetkov/html-server-components-compiler

HTML Server Components compiler

  Sources   Download

MIT

The Requires

 

The Development Requires

html html server components compiler

20/01 2017

v0.5.2

0.5.2.0 https://github.com/ivopetkov/html-server-components-compiler

HTML Server Components compiler

  Sources   Download

MIT

The Requires

 

The Development Requires

html html server components compiler

21/11 2016

v0.5.1

0.5.1.0 https://github.com/ivopetkov/html-server-components-compiler

HTML Server Components compiler

  Sources   Download

MIT

The Requires

 

The Development Requires

html html server components compiler

21/10 2016

v0.5.0

0.5.0.0 https://github.com/ivopetkov/html-server-components-compiler

HTML Server Components compiler

  Sources   Download

MIT

The Requires

 

The Development Requires

html html server components compiler

07/10 2016

v0.4.3

0.4.3.0 https://github.com/ivopetkov/html-server-components-compiler

HTML Server Components compiler

  Sources   Download

MIT

The Requires

 

The Development Requires

html html server components compiler

07/10 2016

v0.4.2

0.4.2.0 https://github.com/ivopetkov/html-server-components-compiler

HTML Server Components compiler

  Sources   Download

MIT

The Requires

 

The Development Requires

html html server components compiler

09/09 2016

v0.4.1

0.4.1.0 https://github.com/ivopetkov/html-server-components-compiler

HTML Server Components compiler

  Sources   Download

MIT

The Requires

 

The Development Requires

html html server components compiler

02/09 2016

v0.4.0

0.4.0.0

HTML Server Components compiler

  Sources   Download

MIT

The Requires

 

29/08 2016

v0.3.2

0.3.2.0

HTML Server Components compiler

  Sources   Download

MIT

The Requires

 

21/08 2016

v0.3.1

0.3.1.0

HTML Server Components compiler

  Sources   Download

MIT

The Requires

 

25/04 2016

v0.3.0

0.3.0.0

HTML Server Components compiler

  Sources   Download

MIT

The Requires

 

14/04 2016

v0.2.4

0.2.4.0

HTML Server Components compiler

  Sources   Download

MIT

The Requires

 

13/04 2016

v0.2.3

0.2.3.0

HTML Server Components compiler

  Sources   Download

MIT

The Requires

 

13/04 2016

v0.2.2

0.2.2.0

HTML Server Components compiler

  Sources   Download

MIT

The Requires

 

08/03 2016

v0.2.1

0.2.1.0

HTML Server Components compiler

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

05/02 2016

v0.2.0

0.2.0.0

HTML Server Components compiler

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

30/01 2016

v0.1.1

0.1.1.0

HTML Server Components compiler

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

13/01 2016

v0.1.0

0.1.0.0

HTML Server Components compiler

  Sources   Download

MIT

The Requires

  • php >=5.5.0