{"id":34742961,"url":"https://github.com/innobraingmbh/markitdown","last_synced_at":"2025-12-25T04:26:25.103Z","repository":{"id":268403659,"uuid":"904210274","full_name":"innobraingmbh/markitdown","owner":"innobraingmbh","description":"Laravel bindings to microsoft/markitdown","archived":false,"fork":false,"pushed_at":"2025-09-25T07:35:07.000Z","size":133,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-25T09:24:01.385Z","etag":null,"topics":["laravel","markdown","markitdown"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/innobraingmbh.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"Innobrain"}},"created_at":"2024-12-16T13:04:48.000Z","updated_at":"2025-09-25T07:35:11.000Z","dependencies_parsed_at":"2024-12-16T15:27:13.833Z","dependency_job_id":"994f66fb-2208-4fc7-b6a5-2712d345d78b","html_url":"https://github.com/innobraingmbh/markitdown","commit_stats":null,"previous_names":["innobraingmbh/markitdown"],"tags_count":16,"template":false,"template_full_name":"spatie/package-skeleton-laravel","purl":"pkg:github/innobraingmbh/markitdown","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/innobraingmbh%2Fmarkitdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/innobraingmbh%2Fmarkitdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/innobraingmbh%2Fmarkitdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/innobraingmbh%2Fmarkitdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/innobraingmbh","download_url":"https://codeload.github.com/innobraingmbh/markitdown/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/innobraingmbh%2Fmarkitdown/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28019384,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-25T02:00:05.988Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["laravel","markdown","markitdown"],"created_at":"2025-12-25T04:26:21.770Z","updated_at":"2025-12-25T04:26:25.095Z","avatar_url":"https://github.com/innobraingmbh.png","language":"PHP","funding_links":["https://github.com/sponsors/Innobrain"],"categories":[],"sub_categories":[],"readme":"# Laravel bindings for markitdown.\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/innobrain/markitdown.svg?style=flat-square)](https://packagist.org/packages/innobrain/markitdown)\n[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/innobraingmbh/markitdown/run-tests.yml?branch=main\u0026label=tests\u0026style=flat-square)](https://github.com/innobraingmbh/markitdown/actions?query=workflow%3Arun-tests+branch%3Amain)\n[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/innobraingmbh/markitdown/fix-php-code-style-issues.yml?branch=main\u0026label=code%20style\u0026style=flat-square)](https://github.com/innobraingmbh/markitdown/actions?query=workflow%3A\"Fix+PHP+code+style+issues\"+branch%3Amain)\n[![Total Downloads](https://img.shields.io/packagist/dt/innobrain/markitdown.svg?style=flat-square)](https://packagist.org/packages/innobrain/markitdown)\n\nLaravel bindings for markitdown.\n\n## Installation\n\n1. Install the package via composer:\n\n```bash\ncomposer require innobrain/markitdown\n```\n\n2. Publish the configuration file:\n\n```bash\nphp artisan vendor:publish --tag=\"markitdown-config\"\n```\n\n3. Run the installation command if you want the package to manage your `markitdown` installation:\n\n```bash\nphp artisan markitdown:install\n```\n\nThis will:\n- Set up a Python virtual environment with the required dependencies\n- Add the setup script to your project's composer.json\n- Ensure the environment is kept up to date with future composer updates\n\n### Alternative Installation Methods\n\nIf you prefer not to use the built-in virtual environment, you can disable it in your `.env` file or in the config:\n\n```bash\nMARKITDOWN_USE_VENV_PACKAGE=false\n```\n\nThen install markitdown manually using one of these methods:\n\n#### Using pip directly:\n\n```bash\npip install markitdown\n```\n\n#### Using pipx (Recommended for manual installation):\n\nOn macOS:\n```bash\nbrew install pipx\npipx ensurepath\nsudo pipx ensurepath --global # optional to allow pipx actions with --global argument\n```\n\nOr see how to install on [other platforms](https://github.com/pypa/pipx).\nAfter installing `pipx`, you can install `markitdown` with:\n\n```bash\npipx install markitdown\n```\n\nWhen 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:\n```bash\nwhich markitdown\n```\n\n```bash\nMARKITDOWN_EXECUTABLE=/path/to/markitdown\n```\n\nAlso, when running the script anywhere but the console, you need to set the PATH, as php-fpm does not have\naccess to the PATH variable. You can do this by adding the following to your `.env` file:\n\n```bash\nMARKITDOWN_SYSTEM_PATH=\u003cyour path\u003e\n```\n\n## Configuration\n\nThe package's configuration will be published to `config/markitdown.php`. Here are the available options:\n\n```php\nreturn [\n    /*\n     * Use this to set the timeout for the process. Default is 30 seconds.\n     */\n    'process_timeout' =\u003e env('MARKITDOWN_PROCESS_TIMEOUT', 30),\n\n    /*\n     * Use this to set the path to the markitdown executable. If not set,\n     * the binary will be searched in the PATH. Will be ignored\n     * if use_venv_package is set to true.\n     */\n    'executable' =\u003e env('MARKITDOWN_EXECUTABLE', 'markitdown'),\n\n    /*\n     * This will override the above setting and use the new locally installed package.\n     */\n    'use_venv_package' =\u003e env('MARKITDOWN_USE_VENV_PACKAGE', true),\n\n    /*\n     * This is needed when you want to run markitdown in php-fpm. One dependency\n     * of markitdown requires PATH to be set. If you are running in a console,\n     * this is not needed.\n     */\n    'system' =\u003e [\n        'path' =\u003e env('MARKITDOWN_SYSTEM_PATH', ''),\n    ],\n\n    /*\n     * The path where temporary files will be stored. This directory must be writable\n     * by the web server. Defaults to storage/app/private/markitdown_tmp\n     */\n    'temporary_directory' =\u003e env('MARKITDOWN_TEMPORARY_DIRECTORY', storage_path('app/private/markitdown_tmp')),\n];\n```\n\n## Usage\n\n```php\n// convert a file:\n$markdown = \\Innobrain\\Markitdown\\Facades\\Markitdown::convert('/path/to/file.docx');\n\n// or convert a file you already have in memory:\n$file = file_get_contents('/path/to/file.docx');\n$markdown = \\Innobrain\\Markitdown\\Facades\\Markitdown::convertFile($file, '.docx');\n```\n\n## Testing\n\n```bash\ncomposer test\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Credits\n\n- [Konstantin Auffinger](https://github.com/kauffinger)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finnobraingmbh%2Fmarkitdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finnobraingmbh%2Fmarkitdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finnobraingmbh%2Fmarkitdown/lists"}