• Stars
    star
    139
  • Rank 262,954 (Top 6 %)
  • Language
    PHP
  • License
    Apache License 2.0
  • Created about 10 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Use Blade templates without the full Laravel framework

blade

Use Laravel Blade templates as a standalone component without the full Laravel framework

Full documentation is available at http://duncan3dc.github.io/blade/
PHPDoc API documentation is also available at http://duncan3dc.github.io/blade/api/

release build coverage

Quick Examples

Output the view from /var/www/views/index.blade.php:

use duncan3dc\Laravel\BladeInstance;

$blade = new BladeInstance("/var/www/views", "/var/www/cache/views");

echo $blade->render("index");

There is also a static class available:

use duncan3dc\Laravel\Blade;

echo Blade::render("index");

Read more at http://duncan3dc.github.io/blade/

Changelog

A Changelog has been available since version 2.0.0

Where to get help

Found a bug? Got a question? Just not sure how something works?
Please create an issue and I'll do my best to help out.
Alternatively you can catch me on Twitter

duncan3dc/blade for enterprise

Available as part of the Tidelift Subscription

The maintainers of duncan3dc/blade and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more.

More Repositories

1

sonos

A PHP library for interacting with Sonos speakers
PHP
108
star
2

speaker

A PHP library to convert text to speech using various web services
PHP
100
star
3

dusk

Use Dusk browser automation without the full Laravel framework
PHP
80
star
4

fork-helper

A PHP helper to fork processes and allow multi-threading
PHP
69
star
5

meta-audio

A PHP library to read and write metadata tags to audio files (MP3, ID3, APE, etc)
PHP
34
star
6

sessions

A non-blocking session handler for PHP
PHP
24
star
7

console

Create command line php applications using symfony/console
PHP
15
star
8

php-helpers

A collection of helper functions written in PHP for PHP
PHP
14
star
9

bom-string

A small PHP library to handle byte order marks (BOM)
PHP
14
star
10

domparser

Wrappers for the PHP DomDocument class to provide extra functionality for html/xml parsing
PHP
9
star
11

uopz-expectations

Mock core PHP functions using a Mockery like interface
PHP
8
star
12

cache

A simple PSR-6/PSR-16 compatible disk/array cache for PHP
PHP
8
star
13

twitter

Aggregator for twitter, instagram, reddit, ask.fm, wikipedia and news.php.net
PHP
8
star
14

mailer

A simple mailer abstraction for PHP with a clean interface
PHP
7
star
15

symfony-climate

Combine Symfony's console output with The PHP League's CLImate
PHP
6
star
16

sql-class

A simple database abstraction layer for PHP, with an on disk caching facility.
PHP
4
star
17

php-ini

Manage php.ini directives on a temporary basis.
PHP
4
star
18

object-intruder

A small PHP library to access private/protected properties/methods of objects
PHP
4
star
19

github

A PHP library to interact with the GitHub API
PHP
3
star
20

sonos-cloud

A PHP library to use the official Sonos API to control your speakers
PHP
3
star
21

proxy

A simple script that provides a basic proxy to any website
PHP
2
star
22

exec

Run command line processes from within PHP
PHP
2
star
23

php-env

A small PHP library to get environment details
PHP
2
star
24

sonos-console

A command line application for controlling Sonos networks
PHP
1
star
25

phpexcel

A simple wrapper around the phpexcel library
PHP
1
star
26

sql

A simple database abstraction layer for PHP, with an on disk caching facility
PHP
1
star
27

guzzle-tools

A PHP library to log request and responses from Guzzle
PHP
1
star
28

logger-aware-trait

A PSR-3 trait allowing any class to easily add logger support
PHP
1
star
29

sonos-common

Some utilities and interfaces for Sonos code in PHP
PHP
1
star
30

climate-logger

Use your best friend for the terminal with your favourite PSR-3 compatible projects
PHP
1
star