PHPackages                             zhalker/php-literal - 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. [Templating &amp; Views](/categories/templating)
4. /
5. zhalker/php-literal

ActiveLibrary[Templating &amp; Views](/categories/templating)

zhalker/php-literal
===================

Backtick-powered PHP literal templating with embedded expressions, inspired by JavaScript template literals.

v2.0.0(6mo ago)118MITPHPPHP ^8.0

Since Apr 14Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/zhalker/php-literal)[ Packagist](https://packagist.org/packages/zhalker/php-literal)[ RSS](/packages/zhalker-php-literal/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

php-literal
===========

[](#php-literal)

A PHP library that allows using backtick-delimited literals with embedded expressions, similar to JavaScript template literals. This library processes PHP code and enables dynamic inclusion of files with expressions inside backticks.

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

[](#installation)

You can install `php-literal` via Composer:

```
composer require zhalker/php-literal
```

Example Usage
-------------

[](#example-usage)

```
