thipages/quicktag 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

thipages/quicktag

Composer 安装命令:

composer require thipages/quicktag

包简介

Quick html tags builder

README 文档

README

Quick Html tags builder

Installation

composer require thipages\quicktag

Usage of QTag class

Basic usage

Maps are associative arrays mapping tags attributes

    // *************
    // CONTENT TAGS
    // *************
    QTag::tag ($tag, ...$map)($content) : String
    QTag::tag ($tag, ...$map1)($content,$map2]) : String
    // *************
    // VOID TAGS
    // *************
    QTag::tag ($tag, ...$map):String
Examples
$blue=['style'=>'color:blue'];

$html=QTag::tag('span',$blue)('Hello QTag');
/* <span style="color:blue">Hello QTag</span> */

$html=QTag::tag('input', ['type'=>'num','min'=>2]);
/* <input type="num" min="2" /> */
Templating usage - Content tags
   QTag::tag ($tag, ...$map1)[($content, ...$map2, true)]n($content, ...$mapN) : String

Examples

$blue=['style'=>'color:blue'];

$template=QTag::tag('span',$blue)('Hello QTag', true);
$html=$template('...and more");
/* <span style="color:blue">Hello QTag...and more</span> */
Templating usage - Void tags
    QTag::tag ($tag, ...$map1, true)[(...$map2, true)]n(...$mapN) : String
Examples
$blue=['style'=>'color:blue'];
$min=['min'=>2];

$template=QTag::tag('input',$blue, true);
$html=$template($min);
/* <input style="color:blue" min="2"/> */

统计信息

  • 总下载量: 44
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-04-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固