Download the PHP package ueberdosis/pandoc without Composer
On this page you can find all versions of the php package ueberdosis/pandoc. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ueberdosis/pandoc
More information about ueberdosis/pandoc
Files in ueberdosis/pandoc
Package pandoc
Short Description Pandoc PHP Package
License MIT
Homepage https://github.com/ueberdosis/pandoc
Informations about the package pandoc
Pandoc PHP Package
If you need to convert text files from one format to another, pandoc is your swiss-army knife. This package is a PHP wrapper for pandoc.
Installation
You can install the package via composer:
This package is a wrapper for the command-line tool pandoc. Don’t forget to install pandoc. Here is an example for Ubuntu:
More examples are available in the pandoc documentation
Usage
Return the converted text as string
Use a file as input and write a file as output
Change path to Pandoc
Change working directory
List available input formats
List available output formats
Write a log file
Retrieve Pandoc version
Use magic methods to make calls shorter
Pass options to Pandoc
See https://pandoc.org/MANUAL.html for a full list of available options
Laravel Facade
This package includes a Laravel facade for people that like that little bit of syntactic sugar.
Exceptions
If something went wrong, the package throws a generic \Symfony\Component\Process\Exception\ProcessFailedException
. There are even a few specific exceptions.
- \Pandoc\Exceptions\PandocNotFound
- \Pandoc\Exceptions\InputFileNotFound
- \Pandoc\Exceptions\UnknownInputFormat
- \Pandoc\Exceptions\UnknownOutputFormat
- \Pandoc\Exceptions\LogFileNotWriteable
- \Pandoc\Exceptions\BadMethodCall
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Credits
- Hans Pagel
- Miguel Piedrafita
- All Contributors
License
The MIT License (MIT). Please see License File for more information.