PHPackages                             antheia/antheia - 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. [Framework](/categories/framework)
4. /
5. antheia/antheia

Abandoned → [antheia/framework](/?search=antheia%2Fframework)Library[Framework](/categories/framework)

antheia/antheia
===============

Frontend and interface framework for web-based applications.

3.1.0(3w ago)4229Apache-2.0PHPPHP ^7.2 || ^8.0CI passing

Since Jun 17Pushed 3w ago1 watchersCompare

[ Source](https://github.com/cosminstaicu/antheia)[ Packagist](https://packagist.org/packages/antheia/antheia)[ Docs](https://github.com/cosminstaicu/antheia)[ RSS](/packages/antheia-antheia/feed)WikiDiscussions main Synced today

READMEChangelog (10)DependenciesVersions (44)Used By (0)

Antheia
=======

[](#antheia)

A server-rendered PHP UI framework for building component-based web applications.

Antheia is a server-side UI framework for PHP that provides structured, reusable components while preserving full control over rendered HTML. It is built for applications that value predictability, testability, and long-term maintainability over client-side complexity.

> ⚠️ Antheia 3.x introduces namespace and package structure changes and is not backward compatible with 2.x.x releases. Please review the [upgrade guide](UPGRADE-3.0.md) before upgrading.

[![GitHub](https://camo.githubusercontent.com/35d80ba840f30e75ec512609b074f13678be0733ee78a3b409f8e66a2a942cb8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f636f736d696e7374616963752f616e7468656961)](https://camo.githubusercontent.com/35d80ba840f30e75ec512609b074f13678be0733ee78a3b409f8e66a2a942cb8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f636f736d696e7374616963752f616e7468656961)[![GitHub release (latest by date)](https://camo.githubusercontent.com/e9b565ca9bce8a1fcad05f7b9f5741656b1635ef2da9df9e3789c5aaf2900863/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f636f736d696e7374616963752f616e74686569613f646973706c61795f6e616d653d746167)](https://camo.githubusercontent.com/e9b565ca9bce8a1fcad05f7b9f5741656b1635ef2da9df9e3789c5aaf2900863/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f636f736d696e7374616963752f616e74686569613f646973706c61795f6e616d653d746167)[![E2E Tests](https://github.com/cosminstaicu/antheia/actions/workflows/e2e.yml/badge.svg?branch=main)](https://github.com/cosminstaicu/antheia/actions/workflows/e2e.yml)[![Packagist Downloads](https://camo.githubusercontent.com/715e0697858460cdbbf3a22c752e5a13b318b070bdbd82265a08fdd2b6bf1eca/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616e74686569612f6672616d65776f726b)](https://camo.githubusercontent.com/715e0697858460cdbbf3a22c752e5a13b318b070bdbd82265a08fdd2b6bf1eca/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616e74686569612f6672616d65776f726b)[![Packagist Downloads](https://camo.githubusercontent.com/a4a57cd1c991f707b6c5e4f8656ec8863c1d894f8182fd3b254e45bb146c4779/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616e74686569612f616e7468656961)](https://camo.githubusercontent.com/a4a57cd1c991f707b6c5e4f8656ec8863c1d894f8182fd3b254e45bb146c4779/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616e74686569612f616e7468656961)[![PHP Version](https://camo.githubusercontent.com/8a92f0d507c334a9196d967e37e461dc0812220bda3dc8bd63c9d3cecc103612/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f616e74686569612f6672616d65776f726b)](https://camo.githubusercontent.com/8a92f0d507c334a9196d967e37e461dc0812220bda3dc8bd63c9d3cecc103612/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f616e74686569612f6672616d65776f726b)[![Live Demo](https://camo.githubusercontent.com/1905b235a66a426cba71db4df8764f12c6847d7e06dfa4a7615fb333a28894dc/68747470733a2f2f696d672e736869656c64732e696f2f776562736974653f646f776e5f6d6573736167653d4f66666c696e652675705f6d6573736167653d4f6e6c696e652675726c3d6874747073253341253246253246616e74686569612e766f697069742e726f)](https://camo.githubusercontent.com/1905b235a66a426cba71db4df8764f12c6847d7e06dfa4a7615fb333a28894dc/68747470733a2f2f696d672e736869656c64732e696f2f776562736974653f646f776e5f6d6573736167653d4f66666c696e652675705f6d6573736167653d4f6e6c696e652675726c3d6874747073253341253246253246616e74686569612e766f697069742e726f)

Why Antheia?
------------

[](#why-antheia)

Antheia is designed for applications that need structured, reusable user interfaces without adopting a full client-side framework.

It is a good fit when:

- You want **server-rendered pages** with a consistent, component-based layout
- You prefer **server-side UI composition in PHP** over full client-side SPA frameworks
- You need **predictable HTML output** that is easy to test end-to-end
- You want to avoid the complexity and build pipelines required by SPA frameworks
- You value **long-term stability**, explicit versioning, and controlled breaking changes
- Your application benefits from **progressive enhancement** rather than full client-side rendering

Antheia focuses on clarity, testability, and maintainability, while remaining flexible enough to integrate into existing PHP applications.

[![03](https://user-images.githubusercontent.com/25685804/196055946-53d4f73d-f524-465d-adee-c9c762bb61a1.png)](https://user-images.githubusercontent.com/25685804/196055946-53d4f73d-f524-465d-adee-c9c762bb61a1.png)

A live example of the interface (based on the current major version) is available at [antheia.voipit.ro](https://antheia.voipit.ro).
The demo uses the content from the `examples` folder.

Please check the [project wiki](https://github.com/cosminstaicu/antheia/wiki) for more details about the library.

Antheia is used in production by the Cloud PBX service **Accolades**, provided by [VoIPIT Romania](https://www.voipit.ro).

Who Antheia is NOT for
----------------------

[](#who-antheia-is-not-for)

Antheia may not be a good fit if:

- You are building a **fully client-side SPA** where most logic and rendering live in the browser
- You expect **real-time UI state management** similar to React, Vue, or Angular
- You want a framework that hides or abstracts away HTML structure
- Your project relies heavily on **frontend build pipelines** and JavaScript-first tooling
- You are looking for a drop-in theme or CMS rather than a UI framework

Antheia is intentionally opinionated toward server-rendered applications with explicit structure and behavior.

Features
--------

[](#features)

- Server-rendered component architecture
- Reusable PHP UI components
- Predictable HTML output
- End-to-end testing support
- Progressive enhancement friendly
- Minimal frontend build requirements
- Explicit versioning and migration policy

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

[](#installation)

Use [composer](https://getcomposer.org) to install Antheia into your project:

```
composer require antheia/framework
```

After installation, you must configure a cache folder for Antheia before rendering any pages.

The cache folder:

- must be writable by the application
- must have a corresponding public URL
- should not be publicly writable beyond what Antheia requires

You can configure it at runtime using:

```
Globals::setCache(string $url, string $path);
```

The `$url` must point to the public URL of the cache directory, while `$path` must be the absolute filesystem path.

Failing to configure the cache correctly will result in runtime errors. This requirement exists to allow Antheia to generate cached assets deterministically.

Quick Start
-----------

[](#quick-start)

```
