prezet / blog-template
Official blogging template for the Prezet markdown blogging engine
                                    Fund package maintenance!
                                                                            
                                                                                                                                        Prezet
                                                                                    
                                                                
Installs: 680
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 3
Open Issues: 0
Language:Blade
pkg:composer/prezet/blog-template
Requires
- php: ^8.2
 - illuminate/contracts: ^10.0||^11.0||^12.0
 - spatie/laravel-package-tools: ^1.16
 
Requires (Dev)
- larastan/larastan: ^2.9||^3.0
 - laravel/pint: ^1.14
 - nunomaduro/collision: ^8.1.1||^7.10.0
 - orchestra/testbench: ^10.0.0||^9.0.0||^8.22.0
 - pestphp/pest: ^3.0
 - pestphp/pest-plugin-arch: ^3.0
 - pestphp/pest-plugin-laravel: ^3.0
 - phpstan/extension-installer: ^1.3||^2.0
 - phpstan/phpstan-deprecation-rules: ^1.1||^2.0
 - phpstan/phpstan-phpunit: ^1.3||^2.0
 - prezet/prezet: ^1.0.0@rc
 
This package is not auto-updated.
Last update: 2025-10-29 01:51:35 UTC
README
This package provides a blogging-focused starting template for the Prezet Markdown Blogging Engine [1]. It sets up routes, controllers, views, CSS, and content structure suitable for a blog site.
The installer copies the necessary files into your Laravel application and then removes this package, leaving you with the template files to modify as needed.
Installation
- 
Require the package:
composer require prezet/blog-template --dev
(Note: We install as a dev dependency since the package removes itself after installation).
 - 
Run the installer:
php artisan blog-template:install
This command will:
- Copy routes, controllers, views, CSS, content stubs, and Vite configuration into your application.
 - Install required Node dependencies (
tailwindcss,alpinejs, etc.). - Remove the 
prezet/blog-templatepackage from your Composer dependencies. 
 
Files Added/Modified
The blog-template:install command will add or modify the following files and directories within your Laravel application:
your-laravel-app/
├── app/
│   └── Http/
│       └── Controllers/
│           └── Prezet/     # Contains the index, show, image, ogimage, and search controllers
├── routes/
│   ├── prezet.php          # Route definitions for the above controllers
│   └── web.php             # Modified to include routes/prezet.php
├── resources/
│   ├── css/
│   │   └── prezet.css      # Contains the Tailwind v4 CSS
│   └── views/
│       ├── components/
│       │   └── prezet/     # A collection of Blade components used in the template
│       └── prezet/         # Page level Blade views for the index, show, and ogimage routes
├── prezet/                 # Example content containng markdown files and images
├── package.json            # Modified with added node dependencies
└── vite.config.js          # Overwrites existing vite.config.js. Be sure to check this file.
Testing
composer test
Credits
License
The MIT License (MIT). Please see License File for more information.