PHPackages                             antymoro/twigflow - 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. antymoro/twigflow

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

antymoro/twigflow
=================

A PHP application with customizable modules and templates, supporting Payload and Sanity CMSes.

v1.1.0(2mo ago)0484MITPHPPHP ^7.4 || ^8.0CI failing

Since Apr 11Pushed 2mo ago1 watchersCompare

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

READMEChangelogDependencies (24)Versions (5)Used By (0)

TwigFlow
========

[](#twigflow)

TwigFlow is a web application built with the Slim Framework and Twig templating engine. It fetches content from various CMS APIs (e.g., Payload CMS) and renders it using Twig templates. The application also includes a caching mechanism to reduce the number of API requests and improve performance.

Features
--------

[](#features)

- Fetches content from CMS APIs using slugs
- Renders content using Twig templates
- Caching mechanism to reduce API requests
- Supports multiple CMS services (e.g., Payload CMS, Sanity)
- Works on module-based logic with optional feature to process the module in PHP with additional info from CMSes (e.g., sending another request to fetch featured news in the news module) supporting async requests

Requirements
------------

[](#requirements)

- PHP 8.2 or higher
- Composer
- MAMP (or any other local development environment)

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

[](#installation)

1. **Clone the TwigFlow boilerplate repository:**

    ```
    git clone https://github.com/antymoro/twigflow-boilerplate.git
    cd twigflow-boilerplate
    ```
2. **Install the TwigFlow package via Composer:**

    ```
    composer require antymoro/twigflow:dev-main --prefer-stable
    ```
3. **Set up environment variables:**

    Create a `.env` file in the root directory and add the necessary environment variables:

    ```
    API_URL=https://id.api.sanity.io/v2022-03-07
    CMS_CLIENT=sanity
    APP_ENV=development
    CACHE_EXPIRE_TIME=0
    TWIG_CACHE=false
    HOMEPAGE_SLUG=homepage
    ```
4. **Set up the web server:**

    If you are using MAMP, set the document root to the root folder of the project.

Usage
-----

[](#usage)

### Start the web server

[](#start-the-web-server)

If you are using MAMP, start the Apache and MySQL servers.

### Access the application

[](#access-the-application)

Open your web browser and navigate to:

```
http://localhost:[port]

```

Replace `[port]` with the port number configured in MAMP.

### Clear cache

[](#clear-cache)

To clear the cache, send a POST request to:

```
http://localhost:[port]/clear-cache
```# huncwot-payload

```

###  Health Score

42

—

FairBetter than 89% of packages

Maintenance91

Actively maintained with recent releases

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 99.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~95 days

Total

3

Last Release

88d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e8dece438cb3ec9eebf584369fbd66099b98b4c4707a92a7edb494b777ae4b0b?d=identicon)[antymoro](/maintainers/antymoro)

---

Top Contributors

[![antymoro](https://avatars.githubusercontent.com/u/43903834?v=4)](https://github.com/antymoro "antymoro (187 commits)")[![gregmatys](https://avatars.githubusercontent.com/u/2726982?v=4)](https://github.com/gregmatys "gregmatys (1 commits)")

### Embed Badge

![Health badge](/badges/antymoro-twigflow/health.svg)

```
[![Health](https://phpackages.com/badges/antymoro-twigflow/health.svg)](https://phpackages.com/packages/antymoro-twigflow)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M16.9k](/packages/laravel-framework)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[silverstripe/framework

The SilverStripe framework

7213.5M2.5k](/packages/silverstripe-framework)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[phlak/directory-lister

PHP directory lister

2.5k1.4k](/packages/phlak-directory-lister)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
