Download the PHP package benbjurstrom/prezet without Composer
On this page you can find all versions of the php package benbjurstrom/prezet. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download benbjurstrom/prezet
More information about benbjurstrom/prezet
Files in benbjurstrom/prezet
Package prezet
Short Description Prezet: Markdown Blogging for Laravel
License MIT
Homepage https://github.com/benbjurstrom/prezet
Informations about the package prezet
Prezet: Markdown Blogging for Laravel
Transform your markdown files into SEO-friendly blogs, articles, and documentation with Prezet. Including built in automatic image optimization, dynamic tables of contents, validated front matter DTOs, and integrated Blade components.
https://github.com/benbjurstrom/prezet/assets/12499093/771efccc-6ac3-414a-a852-62ce66e87f57
Table of contents
🌟 Features
- Installs in seconds: Set up your project with a single command.
- Automatic Image Optimization: Streamline your media with automated compression, WebP conversion, and responsive srcset handling.
- Dynamic Table of Contents: Automatically generate a nested, scroll-synced TOC from your article's H2 and H3 headings.
- Validated Frontmatter: Validate and cast frontmatter data into structured DTOs for consistency across your content.
- SUMMARY.md Support: Organize your blog level hierarchy with simple headings and links.
- Configurable Markdown: Tailor CommonMark extensions, route settings, and front matter DTOs through the package's configuration file.
- 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.
- Complete Customization: Prezet is built on top of modular action classes allowing you full customization of the package's built in controllers.
🚀 Quick start
Create a fresh Laravel install
Install the Prezet package:
Run the package installer:
⚠️ NOTE: Before running the installer on an existing application it is recommended to switch to a clean branch. As part of the install process Prezet configures your application with Tailwind CSS. Any existing Tailwind configuration will be overwritten.
Update the index:
After adding or modifying your markdown files, you need to update the index to reflect these changes:
This command updates the SQLite index with the latest frontmatter information from your markdown files. Run this command whenever you:
- Add a new markdown file
- Change a markdown file's slug
- Modify frontmatter and want to see those changes reflected on the index page
Note that changes to the main content of your markdown files don't require updating the index, as this content is read directly from the file when displaying a single post.
Start your server:
Check out your new markdown blog at http://localhost:8000/prezet
Documentation
Access detailed documentation at prezet.com
Credits
- Ben Bjurstrom
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of prezet with dependencies
ext-dom Version *
ext-gd Version *
archtechx/laravel-seo Version ^0.10.1
illuminate/contracts Version ^10.0||^11.0
league/commonmark Version ^2.4
spatie/laravel-package-tools Version ^1.16
spatie/laravel-sitemap Version ^7.2
symfony/yaml Version ^6.2|^7.1
wendelladriel/laravel-validated-dto Version ^3.5