prezet/prezet
Sobre
🚀 Markdown Blogging for Laravel!
Desenvolvimento web e de aplicativosCrescimento medido de estrelas
- em 24 h
- 0
- em 7 dias
- -1
- em 15 dias
- -1
- em 1 mês
- Coletando histórico
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
README.md
Original
Prezet: Markdown Blogging for Laravel
Go from markdown files to SEO-friendly blogs, articles, and documentation in seconds! The Prezet framework makes it easy to parse, index, and serve your Markdown content efficiently within a Laravel application.
Looking for a ready-to-use frontend? Check out our offical template packages:
Table of Contents
✨ Framework Features
- • SQLite Index
- Indexes your markdown files to support search, pagination, sorting, and filtering.
- • Automatic Image Optimization
- Handles image processing, including compression, scaling, and generating responsive `srcset` attributes.
- • Validated Front Matter
- Define expected front matter fields and automatically cast them into validated Data Transfer Objects (DTOs) for type-safe access in your application.
- • Open Graph (OG) images
- Generate OG images from front matter using a customizable template.
- • Dynamic Table of Contents
- Automatically extracts headings from your Markdown content to generate data for a nested Table of Contents.
- • SEO Optimization
- Automatically generate meta tags based on front matter data for better search engine discoverability.
- • Blade Components
- Include Laravel Blade components in your markdown for enriched, interactive content.
🚀 Quick Start
Install the Prezet framework:
# Install the framework package composer require prezet/prezet # Run the framework installer php artisan prezet:installInstall a Frontend Template:
The Prezet framework provides the backend engine. A template package provides the frontend (routes, controllers, views, CSS).
Example using the Official Docs Template:
# Install the template package composer require prezet/docs-template --dev # Run the template's installer php artisan docs-template:installIndex Your Content: After adding or modifying Markdown files in your content directory update the Prezet index:
php artisan prezet:index --freshThis command scans your content directory and updates the SQLite index with the latest front matter information. Run this whenever you:
- Add new Markdown files.
- Change a file's slug (filename).
- Modify front matter and need it reflected in listings or searches. (Changes to the main body content of Markdown files are reflected automatically when viewing a single page).
Start Your Server:
php artisan serveVisit the routes defined by your installed frontend template (e.g.,
/prezetif usingprezet/docs-template).
Documentation
Detailed documentation is available at prezet.com
Credits
License
The MIT License (MIT). Please see License File for more information.
Explore projetos relacionados
Carregando…