2017 © Pedro Peláez
 

library phpui

php ui framework

image

mugasho/phpui

php ui framework

  • Monday, November 20, 2017
  • by Mugasho
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Phpui

Phpui is a php only Ui framework.
, (*1)

What does it do

Write your code in pure php and DYnamically generate the Html,Javascript,Css etc, (*2)

Installation

composer require mugasho/phpui

How it works

Create a new html document object, (*3)


$htmlDoc=new PhpUi\HtmlDocument('Hello',Lang::$english); $htmlDoc->addClass(Classes::$content); $htmlDoc->setMetaViewport('device-width',1.0,0,'minimal-ui'); $htmlDoc->setMetaDescription('PhpUi is a php only extensible web framework'); $htmlDoc->setMetaKeywords('php,ui,phpUI,web,framework'); $htmlDoc->setMetaAuthor('Script-floor'); //start printing element $htmlDoc->start(); //create the body $body=new PhpUi\UI(typeOf::$body); //add classes to $body $body->addClass(Classes::$containerFluid); $body->start(); //close the element with end method $body->end(); $htmlDoc->end();

Next steps

Add other elements like buttons, lists etc. For example adding a button, (*4)


$button=new PhpUi\UI(typeOf::$button); $button->setText('hello'); $button->setId('btn1'); $button->start(); $button->end(); //create a div $div=new Php\UI(typeOf::$div); $div->setId('div1'); $div->start(); $div->end();

happy Coding, (*5)

The Versions

20/11 2017

dev-master

9999999-dev

php ui framework

  Sources   Download

GNU

by Mugasho Lincoln

php ui user interface