PHPackages                             andrexm/astatine - 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. andrexm/astatine

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

andrexm/astatine
================

A simple PHP template system inspired by Blade.

v0.1.0(1mo ago)01MITPHPPHP &gt;=8.0

Since Mar 14Pushed 1mo ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

Astatine Template Engine
========================

[](#astatine-template-engine)

A very simple and lightweight PHP template engine with a syntax inspired by Laravel's Blade. It's designed to be easy to use and integrate into your PHP projects without unnecessary complexity.

✨ Features
----------

[](#-features)

- **Clean Syntax:** Uses `@` directives and `{{ }}` echo statements, familiar to Laravel developers.
- **Template Inheritance:** Supports `@extends`, `@section`, and `@yield` for building layouts.
- **Includes:** Reuse template partials with the `@include` directive.
- **Control Structures:** Provides convenient directives like `@if`, `@else`, `@foreach`, `@while`, etc.
- **Echoing Data:** Automatically escapes output with `{{ $variable }}` for security. Use `{!! $variable !!}` for unescaped data.
- **Lightweight &amp; Fast:** Compiles templates into plain PHP code for optimal performance.

🚀 Installation
--------------

[](#-installation)

You can install the package via Composer:

```
composer require andrexm/astatine
```

📝 Basic Usage
-------------

[](#-basic-usage)

Here's a quick example of how to use Astatine.

### Configuration

[](#configuration)

First, you need to set up the engine with paths to your template directories.

```
