Download the PHP package cshaptx4869/html2word without Composer

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

HTML转WORD

html文件转word格式,欢迎 Star (●'◡'●)

推荐转.doc 格式 如果为.docx 格式,本机测试 Microsoft Office 2019 打开会有问题,WPS没问题

安装

实例

html模板文件

图片仅支持 PNG, GIF, JPEG, WEBP 格式,且其地址必须是相对于域名根目录或者直接为网络地址

run.php

Html2WordMaker 和 MhtFileMaker 都可以实现。只是原理稍微不同,前者是直接html写入文件,后者是借助mht再写入文件。

说明:

addFile(): 添加html模板文件

eraseLink(): 去除a链接

fetchImg(): 填充图片,若没有图片资源则不必调用。如果html模板文件中含没有域名的相对路径,则需在第一个参数中传入对应的域名

makeFile(): 保存为文件

download(): 浏览器下载


All versions of html2word with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.0
nette/utils Version 2.5.*
imangazaliev/didom Version ^1.18
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 cshaptx4869/html2word contains the following files

Loading the files please wait ....