Download the PHP package tjm/wp-to-markdown without Composer
On this page you can find all versions of the php package tjm/wp-to-markdown. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tjm/wp-to-markdown
More information about tjm/wp-to-markdown
Files in tjm/wp-to-markdown
Package wp-to-markdown
Short Description Convert WordPress posts to markdown files through database connection
License 0BSD
Informations about the package wp-to-markdown
WP To Markdown
Convert WordPress posts to markdown files, in a format and folder structure friendly to my tjm/wiki.php
project. Puts various values in "front-matter" (YAML at top of markdown file). Prefers post_content_filtered
field for post content, which is used by JetPack markdown plugin, which I use for my newer posts. Still has problems converting certain post content: Check the results before using on a live site. Can be run repeatedly, will only update files if content has changed. Does not remove posts removed in WordPress.
To run, install package, run composer install
, then run bin/run
at the command line. You must either pass the non-empty values for these arguments:
- output destination path
- database DSN for PDO (see PDO docs if needed)
- database user
- database password
- database table prefix
- ssh id (user@server) if on a remote system
or, better, modify the bin/run
file to add those values.
Can also be used in PHP code with (new TJM\WPToMarkdown($opts))()
. See src/WPToMarkdown.php
for options.
License
All versions of wp-to-markdown with dependencies
symfony/yaml Version ^5.4
tjm/db Version ^0.2
tjm/task-runner Version ^0.1
tjm/wiki-site Version ^0.0