https://github.com/franzliedke/laravel-plates
The powerful native PHP templating system Plates for Laravel.
https://github.com/franzliedke/laravel-plates
Last synced: about 1 month ago
JSON representation
The powerful native PHP templating system Plates for Laravel.
- Host: GitHub
- URL: https://github.com/franzliedke/laravel-plates
- Owner: franzliedke
- Created: 2013-12-14T14:04:24.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-02-08T22:52:24.000Z (about 10 years ago)
- Last Synced: 2025-03-14T08:18:33.417Z (about 1 month ago)
- Language: PHP
- Size: 160 KB
- Stars: 18
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# laravel-plates
A Laravel driver for the powerful native PHP templating system [Plates](http://platesphp.com).
## Installation with Composer
#### Step 1: Install package through Composer
Add this line to the `require` section of your `composer.json`:
"franzl/laravel-plates": "dev-master"
Alternately, you can use the Composer command-line tool by running this command:
composer require franzl/laravel-plates
Next, run `composer install` to actually install the package.
#### Step 2: Register the service provider
In your Laravel application, edit the `app/config/app.php` file and add this
line to the `providers` array:'Franzl\LaravelPlates\LaravelPlatesServiceProvider',
## Usage
Once installed, you can use Laravel's view system as you always do. Files ending in `.plates.php` will automatically be treated as Plates templates. As long as you don't try to combine things like Blade layouts and Plates' partial views, everything should go well.