2017 © Pedro Peláez
 

library liphte

Lightweight & minimalistic HTML Builder/Generator for PHP

image

maveius/liphte

Lightweight & minimalistic HTML Builder/Generator for PHP

  • Saturday, February 18, 2017
  • by maveius
  • Repository
  • 1 Watchers
  • 1 Stars
  • 26 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

 Liphte , (*1)

Liphte

Lightweight & minimalistic HTML Builder/Generator (or maybe Template Engine) for PHP, (*2)

What is liphte ?

It's lightweight and minimalistic wrapper of html or dom builder based on windwalker-dom and windwalker-html, but inspired by projects rudykocur/pyeve and rudykocur/breve which is simplest way to create or generate html from controllers or others php files., (*3)

Example:

/** Import **/
use liphte\tags\html\Tag;
use liphte\tags\html\Attribute as a;

/** In your code (for example controller) **/
  $t = Liphte::tag();

  $result = $t->table ([ 'style' => 'border: 1px solid #070;' ],
      [
          $t->tr(
              [
                  $t->td( a::style( 'border: 1px solid #000;' ),
                      'Column 1'
                  ),
                  $t->td( a::style( 'border: 1px solid #000;' ),
                      'Column 2'
                  )
              ]
          )
      ]
  );
  echo $result . "\n";

Output:

<table style="border: 1px solid #070;"><tr><td style="border: 1px solid #000;">Column 1</td><td style="border: 1px solid #000;">Column 2</td></tr></table>

Installing Liphte

Composer required:

{
    "require": {
        "maveius/liphte": "1.0"
    }
}

or, (*4)

{
    "require": {
        "maveius/liphte": "dev-master"
    }
}
  1. Add required package to composer.json
  2. Run composer update in your project directory.
  3. Enjoy! Import library and use like in example.

Requirements:

  • Tested on: Apache
  • PHP >= 5.6(.9)
  • MySQL 5+

Changelog

  • v1.0 : 10 June 2015:, (*5)

    • Refactoring code and direcotries structure
  • v0.1 : 6 June 2015:, (*6)

    • Init repository & implement first concept.

Main Developers

Licence

  • MIT

Home Page

The Versions

18/02 2017

dev-master

9999999-dev https://github.com/maveius/liphte

Lightweight & minimalistic HTML Builder/Generator for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

library html wrapper builder

04/02 2017

dev-singleton

dev-singleton https://github.com/maveius/liphte

Lightweight & minimalistic HTML Builder/Generator for PHP

  Sources   Download

MIT

The Requires

 

library html wrapper builder

31/01 2016

dev-experimental

dev-experimental https://github.com/maveius/liphte

Lightweight & minimalistic HTML Builder/Generator for PHP

  Sources   Download

MIT

The Requires

 

library html wrapper builder