PHPackages                             steampixel/simple-php-components - 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. steampixel/simple-php-components

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

steampixel/simple-php-components
================================

This is a very simple and puristic PHP template rendering engine.

121933PHP

Since Apr 8Pushed 4y ago2 watchersCompare

[ Source](https://github.com/steampixel/simplePHPComponents)[ Packagist](https://packagist.org/packages/steampixel/simple-php-components)[ RSS](/packages/steampixel-simple-php-components/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Simple PHP Components 🧱
=======================

[](#simple-php-components-)

Hey! This is a simple, puristic and small single class PHP template rendering engine that comes without any parsing or extra templating language. Build simple templates or complex themes with pure PHP. This concept just works by gluing strings together. That means there is no complex parsing method that will eat up RAM or CPU. That makes this rendering approach extremely fast.

🧰 Features
----------

[](#-features)

- Organize your components inside a clean folder structure
- A component can be a layout, a page or a single content
- Easy reuse of components
- Push variables aka properties (props) to components
- Verify component props
- Create nested components
- Easily override, modify, append or prepend components
- Superfast: We don't need to parse anything
- Superfast: No caching needed
- No extra templating language required

📋 Simple example:
-----------------

[](#-simple-example)

```
