Download the PHP package moyer/qtemp without Composer

On this page you can find all versions of the php package moyer/qtemp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package qtemp

qtemp 集成式工具包

License PHP Version

qtemp 是一个为 ThinkCMF 框架设计的集成式工具包,提供了丰富的 UI 控件、表单组件和 Excel 处理功能,帮助开发者快速构建后台管理界面。

总的说,我还想做一个无手动编码的后台系统,但一个足够集成化的模板库是前置条件。

安装

Composer 安装(推荐)

版本要求

目录结构

核心特性

1. 魔术方法调用

qtemp 基类提供了灵活的魔术方法调用方式:

2. 链式调用

所有 setter 方法都支持链式调用,使代码更加简洁:

3. 助手函数

通过 composer 自动加载的全局助手函数:

快速开始

按钮控件

表单控件

导航标签 + 表格

Excel 导出

文件上传

API 参考

Qtemp 基类方法

所有继承 Qtemp 的类都支持以下魔术方法:

方法模式 说明 示例
addXxx(array) 为数组属性添加元素 addParam(['key' => 'value'])
xxx() 将布尔属性设为 true required()
noXxx() 将布尔属性设为 false noDisabled()
xxx(mixed) 设置属性值 name('username')

Control 控件基类

方法 说明
htmlclass(string\|array) 设置样式类(覆盖)
addHtmlclass(string\|array) 添加样式类(追加)
config(array) 设置配置
addConfig(array) 添加配置
data(array) 设置 data 属性
addData(array) 添加 data 属性
echo() 输出控件
str() 获取控件字符串

FormControl 表单基类

方法 说明
name(string) 设置字段名
title(string) 设置标题
value(mixed) 设置值
required(bool) 设置是否必填
disabled(bool) 设置是否禁用
read_only(bool) 设置是否只读
group() 分组输出(带标签)
groupStr() 获取分组输出字符串

ExcelExport 导出类

方法 说明
column(array) 设置列配置
addColumn(array) 添加列配置
data(array) 设置数据
addData(array) 添加数据
name(string) 设置导出文件名
limit(int) 设置数据量限制
export() 执行导出下载

信息

开源协议

MIT License


All versions of qtemp with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
thinkcmf/cmf Version ^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package moyer/qtemp contains the following files

Loading the files please wait ...