foxxything/markdown-filler

A simple library to replace placeholders in Markdown files.

Installs: 7

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/foxxything/markdown-filler

1.0.0 2025-02-12 21:44 UTC

This package is auto-updated.

Last update: 2025-12-12 23:37:02 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',
]);