Download the PHP package qpfsoft/phtml without Composer

On this page you can find all versions of the php package qpfsoft/phtml. 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 phtml

PHTML

PHTML 即使用PHP语言来编写HTML代码.

前言

在使用DW时, 发现了代码库的功能, 但却是无法导出与导入. 而且新版本的DW的视图操作也转入到代码模式;

所以就有了Phtml的诞生, (实际上最早htmc是它的前身)

优点

缺点

备注

html中存在大量无复杂属性的元素, phtml不会单独写成元素对象, 通过快速标签生成器会更快;

html中有一些复用性很高的标签组, phtml采用了集合元素的方式, 来生成一组标签.

phtml的核心之一就是将数组转换为元素属性

phtml始终尝试生成代码时, 带上合适的间隙. (压缩应该采用第三方来解决)

phtml的元素接口end() 作为闭合元素并返回html代码的方法

元素内添加子元素内容时, 才会正确的缩进

phtml中继承了元素对象, 生成的代码是不带换行的;

单独继承了元素接口的end()方法, 会自带换行!

换行管理

元素集合

元素集合代表一组相同标签, 不同属性的管理集合, 不用每次单独创建元素实例对象, 为了更快的效率!

缩进与换行

特殊

head元素

虽然想尝试将标签元素独立, 但是head内需要添加很多内容, 将子标签功能代理到该元素内, 使用起来回更方便!

js与css

后续开发

注意: end()之前不要确定仍和信息, 这样可以不按照书写顺序,

不会造成后添加的内容未生效, 也可确保正确的缩进级别,

所有的换行也都将在end()中添加, a, b, c 父级容器 (a,b,c),(a,b,c),(a,b,c)不会多余换行


All versions of phtml with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.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 qpfsoft/phtml contains the following files

Loading the files please wait ...