mkalkbrenner/odfphp 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mkalkbrenner/odfphp

最新稳定版本:1.0.5

Composer 安装命令:

composer require mkalkbrenner/odfphp

包简介

Simple PHP library to manipulate an ODF document.

关键字:

README 文档

README

PHP Library to create and edit OpenDocument formats like .odt, .ods, .odp etc. It provides Shortcuts to manipulate the files in an easy way. It is a fork of hanspolo/odfphp to supports newer PHP versions.

Basic usage

This section gives a short introduction in the manipulation of documents.

The first example shows how to create a new document. $type can be text, spreadsheet or an other document type.

   $document = new ODF();
   $document->create($type);

To save the document, you can use the following code. $path is used as the path where the document will be saved.

  $document->save($path);

If you want to extend an existing document, you can load it with this code.

  $document = new ODF();
  $document->open($path);

After initializing your document, you can call:

  $content = Text::getContentBody($document);

or, if you are editing an spreadsheet:

  $content = Spreadsheet::getContentBody($document);

Now you can add elements to your document. ODFphp provides some shortcuts to do this.

Installation

Add the content of the src/ directory into your project. To use ODFphp you have to include at least the odf.php file.

License

ODFphp is licensed under GPL v.3

统计信息

  • 总下载量: 14.23k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2016-09-12