2017 © Pedro Peláez
 

library html

html helper component

image

flatphp/html

html helper component

  • Thursday, August 11, 2016
  • by fredyang
  • Repository
  • 1 Watchers
  • 1 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Html

Html helpers and components., (*1)

Installation

composer require "flatphp/html"

Helper Usage

<?php
use Flatphp\Html;
?>
<link rel="stylesheet" href="<?= Html\asset('css/bootstrap.min.css') ?>">
<script src="<?= Html\asset('js/bootstrap.min.js') ?>"></script>

Form Usage

 'cat1',
    2 => 'cat2',
    3 => 'cat3'
);
$data = array(
    'title' => 'hello test',
    'category' => 1,
    'content' => 'content bala bala'
);
$form = new \Flatphp\Html\Form($data);
?>



title: = $form->text('title', ['class' => 'title_input', 'default_value' => 'please input title']) ?>
category: = $form->select('category', $category, ['class' => 'category_select']) ?>
content: = $form->textarea('content', ['class' => 'content_text'])?>

The Versions

11/08 2016

dev-master

9999999-dev

html helper component

  Sources   Download

MIT

The Requires

  • php >=5.5

 

by Fred Yang

html