foxxything/markdown-filler

A simple library to replace placeholders in Markdown files.

1.0.0 2025-02-12 21:44 UTC

This package is auto-updated.

Last update: 2025-08-12 22:56:13 UTC


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',
]);