zoukankan      html  css  js  c++  java
  • PHPOffice下PHPWord生成Word2007(docx)使用方法

    要正常使用,下载依赖包:

    PhpOffice/Common:https://github.com/PHPOffice/Common

    Zend/Escaper:https://github.com/zendframework/zend-escaper

    Zend/Stdlib:https://github.com/zendframework/zend-stdlib

    Zend/Validator:https://github.com/zendframework/zend-validator

    引用方法:

    1 spl_autoload_register(function ($class) {
    2     $class = ltrim($class, '\');
    3     $class = str_replace('\', '/', $class);
    4     $file = CORE .'/' . $class . '.php';
    5     if (file_exists($file)) {
    6         require_once $file;
    7     }
    8 });
    9 include CORE .'/PhpOffice/PhpWord/PhpWord.php';

    使用方法:

  • 相关阅读:
    fidller 打断点
    随笔
    HTML标签介绍
    补充9.27----9.28
    html5_______9.26
    9.14
    9.13笔记
    9.12笔记
    CSS样式的引用
    html5_______9.10
  • 原文地址:https://www.cnblogs.com/mx3000/p/6884279.html
Copyright © 2011-2022 走看看