Download the PHP package hosmelq/ext-anydoc without Composer

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

ext-anydoc

Native PHP bindings for Firecrawl anydoc to convert Word, PowerPoint, Excel, OpenDocument, RTF, EPUB, CSV, and PDF files to GitHub-Flavored Markdown.

Starting with v0.2.0, extension releases match the anydoc version they embed.

This community project is not affiliated with, endorsed by, or maintained by Firecrawl.

Requirements

Installation

Install the extension with PIE:

Prebuilt binaries are available for PHP 8.4 and 8.5 on Linux glibc x64 and ARM64, macOS Intel and Apple Silicon, and Windows x64. Linux and Windows include NTS and ZTS builds; macOS includes NTS builds. Other Unix targets build from source and require matching PHP development headers and Rust 1.88+.

Usage

Conversions are synchronous. CSV bytes require an explicit csv format. The document model is unavailable for PDF; use anydoc_to_markdown_bytes().

Supported formats

Format Extensions
CSV .csv
EPUB .epub
Excel .xls, .xlsb, .xlsm, .xlsx
OpenDocument .odp, .ods, .odt
PDF .pdf
PowerPoint .pot, .pps, .ppsm, .ppsx, .ppt, .pptm, .pptx
Rich Text Format .rtf
Word .doc, .docm, .docx

API

Anydoc\Document exposes readonly assets, blocks, and notes, including checkbox and math nodes. Embedded asset data is binary-safe. See stubs/anydoc.stub.php for the complete model API.

Errors

Catch Anydoc\Exception\ConvertException for conversion failures. Its concrete types are EncryptedException, IoException, MalformedException, MissingPartException, NeedsOcrException, ResourceLimitException, and UnsupportedException. Each concrete conversion exception exposes ERROR_CODE; some also expose detail, limit, pageCount, pages, or part. Rust panics surface as PanicException.

NeedsOcrException::$pages contains the 1-indexed PDF pages requiring OCR, while $pageCount contains the total number of pages.

License

Released under the MIT License.


All versions of ext-anydoc with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
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 hosmelq/ext-anydoc contains the following files

Loading the files please wait ...