简介:
这是一个处理Word文档的PHP库,可以插入文本,文本符,分页,页眉/页脚,表格,列表中的元素,超链接等等。本库配有十几个实际例子可以作为开发参考,而且配有对应的中文文档,使用起来相当方便,不需要在去啃英文单词。<?php
$vendorDirPath = realpath(__DIR__ . '/vendor');
if (file_exists($vendorDirPath . '/autoload.php')) {
require $vendorDirPath . '/autoload.php';
} else {
throw new Exception(
sprintf(
'Could not find file \'%s\'. It is generated by Composer. Use \'install --prefer-source\' or \'update --prefer-source\' Composer commands to move forward.',
$vendorDirPath . '/autoload.php'
)
);
}