PHPackages                             emsifa/block - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. emsifa/block

ActiveLibrary

emsifa/block
============

PHP Native Template System

v2.4.0(8y ago)151713MITPHPPHP &gt;=5.5.0

Since Nov 23Pushed 8y ago2 watchersCompare

[ Source](https://github.com/emsifa/Block)[ Packagist](https://packagist.org/packages/emsifa/block)[ RSS](/packages/emsifa-block/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (1)Versions (13)Used By (0)

Block - PHP Native Template System
==================================

[](#block---php-native-template-system)

[![Build Status](https://camo.githubusercontent.com/260f6294d4ac0d9a4ebc06ffab4ee30cc01ab0a7300a774d852214c6ac62546a/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f656d736966612f426c6f636b2e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/emsifa/Block)[![License](https://camo.githubusercontent.com/1e1cb7bae9fc55a01fc5443d26e358dc21c129253bcfa9841db85c4f25aa2ecf/687474703a2f2f696d672e736869656c64732e696f2f3a6c6963656e73652d6d69742d626c75652e7376673f7374796c653d666c61742d737175617265)](http://doge.mit-license.org)

Block is PHP native template system inspired by Laravel Blade. Block is not template language, so block doesn't need to be compiled and cached like blade, twig, smarty, etc.

Requirements
------------

[](#requirements)

Block requires PHP 5.5 or greater

Installation
------------

[](#installation)

#### With Composer

[](#with-composer)

If your project using composer, you can install Block via composer by typing this command:

```
composer require "emsifa/block"

```

#### Without Composer

[](#without-composer)

Block is single file library, so you can easily install it without any autoloader by following steps below:

- Download this repo or just download raw `src/Block.php`
- Place it somewhere in your project. For example in `yourproject/lib/Block.php`.
- Then include/require it to your code

Getting Started
---------------

[](#getting-started)

#### Initialize Block

[](#initialize-block)

```
