New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

innobrain/markitdown

Laravel bindings for markitdown.
16,347 7

Larablocks Analysis

innobrain/markitdown works with Laravel 10 to 13 (latest release v3.6.0, Nov 24, 2026).

Recommendation checks

Solid choice

Solid choice: maintained and up to date, meets 2 of 4 checks; below the bar for Recommended on use.

  • Works with Laravel 13, the current version
  • Released in the last 12 months (Nov 24, 2026)
  • 1,582 downloads a month (needs 10,000)
  • 7 GitHub stars (needs 100)

State

Maintained
  • Last stable release: Nov 24, 2026.
  • 2 releases in the last 12 months.
  • First released: Dec 16, 2024.
  • Monthly downloads: 1,582.
  • 3 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 27, 2026.

Install
composer require innobrain/markitdown
Latest Version:v3.6.0
PHP:^8.3
Laravel:10 – 13
License:MIT
Last Updated:Nov 24, 2026
Links: GitHub  ·  Packagist
Maintainer: innobrain

Laravel bindings for markitdown.

Latest Version on Packagist Laravel Compatibility GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Laravel bindings for markitdown.

Installation

  1. Install the package via composer:
composer require innobrain/markitdown
  1. Publish the configuration file:
php artisan vendor:publish --tag="markitdown-config"
  1. Run the installation command if you want the package to manage your markitdown installation:
php artisan markitdown:install

This will:

  • Set up a Python virtual environment with the required dependencies
  • Add the setup script to your project's composer.json
  • Ensure the environment is kept up to date with future composer updates

Alternative Installation Methods

If you prefer not to use the built-in virtual environment, you can disable it in your .env file or in the config:

MARKITDOWN_USE_VENV_PACKAGE=false

Then install markitdown manually using one of these methods:

Using pip directly:
pip install markitdown

On macOS:

brew install pipx
pipx ensurepath
sudo pipx ensurepath --global # optional to allow pipx actions with --global argument

Or see how to install on other platforms. After installing pipx, you can install markitdown with:

pipx install markitdown

When not using the built-in virtual environment, you'll need to set the path to the markitdown executable in your .env file. You can retrieve the path with:

which markitdown
MARKITDOWN_EXECUTABLE=/path/to/markitdown

Also, when running the script anywhere but the console, you need to set the PATH, as php-fpm does not have access to the PATH variable. You can do this by adding the following to your .env file:

MARKITDOWN_SYSTEM_PATH=<your path>

Configuration

The package's configuration will be published to config/markitdown.php. Here are the available options:

return [
    /*
     * Use this to set the timeout for the process. Default is 30 seconds.
     */
    'process_timeout' => env('MARKITDOWN_PROCESS_TIMEOUT', 30),

    /*
     * Use this to set the path to the markitdown executable. If not set,
     * the binary will be searched in the PATH. Will be ignored
     * if use_venv_package is set to true.
     */
    'executable' => env('MARKITDOWN_EXECUTABLE', 'markitdown'),

    /*
     * This will override the above setting and use the new locally installed package.
     */
    'use_venv_package' => env('MARKITDOWN_USE_VENV_PACKAGE', true),

    /*
     * This is needed when you want to run markitdown in php-fpm. One dependency
     * of markitdown requires PATH to be set. If you are running in a console,
     * this is not needed.
     */
    'system' => [
        'path' => env('MARKITDOWN_SYSTEM_PATH', ''),
    ],

    /*
     * The path where temporary files will be stored. This directory must be writable
     * by the web server. Defaults to storage/app/private/markitdown_tmp
     */
    'temporary_directory' => env('MARKITDOWN_TEMPORARY_DIRECTORY', storage_path('app/private/markitdown_tmp')),
];

Usage

// convert a file:
$markdown = \Innobrain\Markitdown\Facades\Markitdown::convert('/path/to/file.docx');

// or convert a file you already have in memory:
$file = file_get_contents('/path/to/file.docx');
$markdown = \Innobrain\Markitdown\Facades\Markitdown::convertFile($file, '.docx');

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

innobraingmbh/onoffice-structure

Package to extract the enterprise configuration

14,598 1
innobrain/laravel-onoffice-adapter

Laravel package to joyfully interact with the onOffice API

52,410 5
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

670,032,257 9,703
laravel/framework

The Laravel Framework.

640,572,096 35,338
laravel/tinker

Powerful REPL for the Laravel framework.

546,909,908 7,440

Version History

Version Released PHP Laravel License
v3.6.0 ^8.3 ^10.0||^11.0||^12.0||^13.0 MIT
v3.5.0 ^8.3 ^10.0||^11.0||^12.0||^13.0 MIT
v3.4.0 ^8.3 ^10.0||^11.0||^12.0 MIT
v3.3.1 ^8.3 ^10.0||^11.0||^12.0 MIT
v3.3.0 ^8.3 ^10.0||^11.0||^12.0 MIT