PHPackages                             abrudtkuhl/markfolio - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. abrudtkuhl/markfolio

ActiveLibrary[Templating &amp; Views](/categories/templating)

abrudtkuhl/markfolio
====================

A Laravel package for rendering markdown files as pages

11PHPCI passing

Since Apr 15Pushed 1y ago1 watchersCompare

[ Source](https://github.com/abrudtkuhl/markfolio)[ Packagist](https://packagist.org/packages/abrudtkuhl/markfolio)[ RSS](/packages/abrudtkuhl-markfolio/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (1)Used By (0)

Markfolio
=========

[](#markfolio)

A Laravel package for rendering markdown files as pages with support for front matter, layouts, and caching.

Features
--------

[](#features)

- Render markdown files as pages
- Support for YAML front matter
- Custom layouts per page
- Built-in caching
- Laravel Folio integration
- Artisan command for creating pages

Requirements
------------

[](#requirements)

- PHP 8.2 or higher
- Laravel 10.x

Installation
------------

[](#installation)

```
composer require abrudtkuhl/markfolio
```

Configuration
-------------

[](#configuration)

Publish the configuration file:

```
php artisan vendor:publish --provider="Markfolio\MarkfolioServiceProvider" --tag="config"
```

This will create a `config/markfolio.php` file with the following options:

```
return [
    'content_directory' => resource_path('content'),
    'default_layout' => 'layouts.app',
    'cache' => [
        'enabled' => env('MARKFOLIO_CACHE_ENABLED', true),
        'ttl' => env('MARKFOLIO_CACHE_TTL', 3600),
    ],
];
```

Usage
-----

[](#usage)

### Creating Pages

[](#creating-pages)

Use the Artisan command to create new markdown pages:

```
php artisan make:markdown-page about
```

This will create a file at `resources/content/about.md` with the following content:

```
---
title: About
layout: layouts.app
---

# About

Your content here.
```

You can also specify a custom title and layout:

```
php artisan make:markdown-page about --title="About Us" --layout="layouts.custom"
```

### Writing Content

[](#writing-content)

Markfolio supports YAML front matter for page metadata:

```
---
title: My Page
layout: layouts.custom
author: John Doe
date: 2024-03-20
---

# My Page

This is my page content.
```

### Rendering Pages

[](#rendering-pages)

Markfolio provides a middleware that automatically renders markdown files. Add it to your routes:

```
Route::get('/{path}', function ($path) {
    // Your route logic
})->middleware(\Markfolio\Middleware\MarkdownRenderer::class);
```

### Laravel Folio Integration

[](#laravel-folio-integration)

Markfolio integrates with Laravel Folio. Simply install Folio and Markfolio will automatically handle your markdown files.

Caching
-------

[](#caching)

Markfolio includes built-in caching to improve performance. By default, rendered pages are cached for 1 hour. You can configure this in the config file.

Testing
-------

[](#testing)

```
composer test
```

Future Enhancements
-------------------

[](#future-enhancements)

The following features are planned for future releases:

### Content Organization

[](#content-organization)

- Categories/tags support
- Related content suggestions
- Content hierarchy (parent/child pages)
- Content versioning
- Draft/published states

### Table of Contents

[](#table-of-contents)

- Auto-generate TOC from markdown headings
- Customizable depth and styling
- Anchor links for headings
- Flexible TOC placement

### Asset Management

[](#asset-management)

- Image optimization and caching
- Asset aliases/paths
- Support for various media types
- Automatic responsive images
- CDN integration

### Search Functionality

[](#search-functionality)

- Full-text search across markdown files
- Laravel Scout integration
- Search result highlighting
- Search index auto-updating

### Syntax Highlighting

[](#syntax-highlighting)

- Code block syntax highlighting
- Multiple language support
- Custom themes
- Line numbers
- Copy-to-clipboard functionality

### Performance Optimizations

[](#performance-optimizations)

- Lazy loading for images
- Content preloading
- Advanced caching strategies
- Asset bundling
- Progressive loading

### Developer Experience

[](#developer-experience)

- Live preview while editing
- Markdown linting
- Front matter validation
- Content validation
- Enhanced error messages

### Integration Features

[](#integration-features)

- Webhook support
- API endpoints
- RSS feed generation
- Sitemap generation
- Social media preview cards

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity15

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7bb357c0d2774c0c8be1f324796c33b6a77cce0ed6502230a7510e4b958baf0f?d=identicon)[abrudtkuhl](/maintainers/abrudtkuhl)

---

Top Contributors

[![abrudtkuhl](https://avatars.githubusercontent.com/u/322732?v=4)](https://github.com/abrudtkuhl "abrudtkuhl (3 commits)")

### Embed Badge

![Health badge](/badges/abrudtkuhl-markfolio/health.svg)

```
[![Health](https://phpackages.com/badges/abrudtkuhl-markfolio/health.svg)](https://phpackages.com/packages/abrudtkuhl-markfolio)
```

###  Alternatives

[mustache/mustache

A Mustache implementation in PHP.

3.3k44.6M291](/packages/mustache-mustache)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8053.0M25](/packages/whitecube-nova-flexible-content)[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3871.2M](/packages/limenius-react-bundle)[symfony/ux-icons

Renders local and remote SVG icons in your Twig templates.

545.8M69](/packages/symfony-ux-icons)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
