PHPackages                             yonlj/purephp - 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. yonlj/purephp

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

yonlj/purephp
=============

Pure is a PHP template engine inspired by ReactJS.

v1.0.0(10mo ago)111MITPHPPHP &gt;=8.1.0CI passing

Since Jul 23Pushed 1mo ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (2)Used By (0)

Purephp
=======

[](#purephp)

[![Tests](https://github.com/YonLJ/purephp/workflows/Tests/badge.svg)](https://github.com/YonLJ/purephp/actions)[![PHP Version](https://camo.githubusercontent.com/7663c9d53dc13cedaf0660a8745a7e77d2dd711257f36aa86ebce12a0600ef42/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e312d626c75652e737667)](https://php.net/)[![License](https://camo.githubusercontent.com/8bb50fd2278f18fc326bf71f6e88ca8f884f72f179d3e555e20ed30157190d0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e737667)](LICENSE)

Purephp is a PHP templating engine inspired by ReactJS functional components.

📖 Documentation
---------------

[](#-documentation)

- **English**:
- **中文**:

Why use Purephp?
----------------

[](#why-use-purephp)

To enjoy pure PHP programming.

In traditional approaches, mixing HTML code, PHP code, and other template syntax in the view layer can be frustrating for developers.

However, with Purephp:

- Everything is 100% native PHP code.
- Encapsulate components to eliminate repetitive HTML code.
- The syntax closely resembles HTML.

Install
-------

[](#install)

`composer require yonlj/purephp`

Basic usage
-----------

[](#basic-usage)

Here is a simple example that will show how to use `Purephp`:

```
