benbjurstrom/prezet
最新稳定版本:v1.0.0-rc7
Composer 安装命令:
composer require benbjurstrom/prezet
包简介
Prezet: Markdown Blogging for Laravel
README 文档
README
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:^1.0.0@rc # Run the framework installer php artisan prezet:install
-
Install 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:install
-
Index Your Content: After adding or modifying Markdown files in your content directory update the Prezet index:
php artisan prezet:index --fresh
This 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 serve
Visit 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.
benbjurstrom/prezet 适用场景与选型建议
benbjurstrom/prezet 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 7.85k 次下载、GitHub Stars 达 257, 最近一次更新时间为 2024 年 05 月 14 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「prezet」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 benbjurstrom/prezet 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 benbjurstrom/prezet 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 benbjurstrom/prezet 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Prezet: Markdown Blogging for Laravel
Official blogging template for the Prezet markdown blogging engine
Official documentation template for the Prezet markdown blogging engine
A Prezet Fork : Markdown Blogging for Laravel
Alfabank REST API integration
Laravel package for Accurate Online API integration.
统计信息
- 总下载量: 7.85k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 257
- 点击次数: 27
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-05-14