foxxything / markdown-filler
A simple library to replace placeholders in Markdown files.
1.0.0
2025-02-12 21:44 UTC
Requires
- php: >=8.1
Requires (Dev)
- phpunit/phpunit: ^10.0
README
<?php require_once __DIR__ . '/vendor/autoload.php'; use Foxxything\MarkdownFiller\MarkdownFiller; file_put_contents('test.md', "# Hello [name]!"); // Init test.md $md = new MarkdownFiller('test.md'); // Load test.md echo $md->replaceVars([ // Replace [name] with 'John Doe' 'name' => 'John Doe', ]);