Download the PHP package caiquebispo/blade-slim without Composer
On this page you can find all versions of the php package caiquebispo/blade-slim. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download caiquebispo/blade-slim
More information about caiquebispo/blade-slim
Files in caiquebispo/blade-slim
Package blade-slim
Short Description Pacote para usar Blade (Laravel) no Slim Framework
License MIT
Informations about the package blade-slim
BladeSlim
Integration of Blade Template Engine with Slim Framework
A package that seamlessly integrates Laravel’s Blade templating engine with the Slim Framework, providing a smooth development experience with full Blade features in Slim applications.
Installation
Install via Composer:
Quick Setup
Configure Blade in your Slim application:
Create your first view in resources/views/home.blade.php and make sure the storage/cache folder is writable:
Use it in a route:
Key Features
Global view() Function
Automatically returns a ready PSR-7 response.
Supports data, status codes, and headers:
Full Blade Support
- Template inheritance (
@extends) - Sections (
@section,@yield) - Components (
@component) - Custom directives
- Sub-view inclusion (
@include)
Flexible Configuration
- Multiple view paths
- Optional caching
- Integration with Slim's DI container
Advanced Usage
Custom Directives
Contributing
Contributions are welcome! Follow these steps:
- Fork the project
- Create your branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
📄 License
Distributed under the MIT License. See LICENSE for more information.
📧 Contact
Caique Bispo - [email protected]
Project Link: https://github.com/caiquebispo/blade-slim