PHPackages                             flyntwp/flynt-core - 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. flyntwp/flynt-core

AbandonedArchivedWordpress-plugin[Framework](/categories/framework)

flyntwp/flynt-core
==================

The Flynt Core Plugin provides a small public interface, combined with several WordPress hooks, to achieve the main principles of the Flynt Framework.

v1.0.0(9y ago)126.6k↓81.3%[2 issues](https://github.com/flyntwp/flynt-core/issues)MITPHP

Since Feb 24Pushed 7y ago2 watchersCompare

[ Source](https://github.com/flyntwp/flynt-core)[ Packagist](https://packagist.org/packages/flyntwp/flynt-core)[ Docs](https://github.com/flyntwp/flynt-core)[ RSS](/packages/flyntwp-flynt-core/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (4)Versions (4)Used By (0)

flynt-core
==========

[](#flynt-core)

[![standard-readme compliant](https://camo.githubusercontent.com/4d148b38f9c13f71b15b80f0bd583698fd5a5ab9bd7dfe61d40e1e30aec35399/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f726561646d652532307374796c652d7374616e646172642d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/RichardLitt/standard-readme)[![Build Status](https://camo.githubusercontent.com/0a6ff4fbdfc5272a01c3b5c1973c2d5de05360e5f8cf0de991d15dababbf93e1/68747470733a2f2f7472617669732d63692e6f72672f666c796e7477702f666c796e742d636f72652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/flyntwp/flynt-core)[![Code Quality](https://camo.githubusercontent.com/f6d79bb89df755941fc7f3b3a13584904ae98bd08f8476e3cb9d0d379b4e67a2/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f666c796e7477702f666c796e742d636f72652e737667)](https://scrutinizer-ci.com/g/flyntwp/flynt-core/?branch=master)[![Coverage Status](https://camo.githubusercontent.com/51472a3a7180e9006e9764cf118997a2a91fed272809c2e458d0d398a4954a08/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f666c796e7477702f666c796e742d636f72652f62616467652e737667)](https://coveralls.io/github/flyntwp/flynt-core)

> The core building block of the [Flynt Framework](https://flyntwp.com).

The Flynt Core WordPress plugin provides a small public interface, combined with several WordPress hooks, to achieve the main principles of the [Flynt Framework](https://flyntwp.com).

**⚠️ DEPRECATED. This repository is no longer in active development. For the latest version of Flynt please use the [new Flynt repository](https://github.com/flyntwp/flynt). ⚠️**

Table of Contents
-----------------

[](#table-of-contents)

- [Background](#background)
- [Install](#install)
- [Usage](#usage)
- [Maintainers](#maintainers)
- [Contribute](#contribute)
- [License](#license)

Background
----------

[](#background)

This plugin essentially functions as a HTML generator with two key steps:

1. Given a minimal configuration, the Flynt Core plugin creates a hierarchical plan for how the site will be constructed (the **Construction Plan**).
2. The Construction Plan is parsed and rendered into HTML.

Each configuration passed to the plugin represents a single component. This configuration can also contain additional, nested component configurations, which are contained within "areas".

Install
-------

[](#install)

To install via composer, run:

```
composer require flyntwp/flynt-core
```

Activate the plugin in the WordPress back-end and you're good to go.

Usage
-----

[](#usage)

### Hello World

[](#hello-world)

To see the simplest way of using Flynt Core, add the following code to your theme's `functions.php`:

```
$componentManager = Flynt\ComponentManager::getInstance();
$componentManager->registerComponent('HelloWorld');

add_filter('Flynt/renderComponent?name=HelloWorld', function () {
  return 'Hello, world!';
});
```

This defines a new component ('HelloWorld'), which when rendered, will output the text 'Hello, world!'.

To render the component, add the following code to your theme's `index.php`:

```
Flynt\echoHtmlFromConfig([
  'name' => 'HelloWorld'
]);
```

### Initialize Default Settings

[](#initialize-default-settings)

We recommend initializing the plugin's default settings. Do this by adding the following line of code to your theme's `functions.php`:

```
Flynt\initDefaults();
```

This will:

- Implement the component structure.
- Load component scripts.
- Enable PHP file rendering.

This also adds the following hooks:

```
// Set the config path to './config'.
add_filter('Flynt/configPath', ['Flynt\Defaults', 'setConfigPath'], 999, 2);

// Parse `.json` config files.
add_filter('Flynt/configFileLoader', ['Flynt\Defaults', 'loadConfigFile'], 999, 3);

// Set the component path to `./Components`.
add_filter('Flynt/componentPath', ['Flynt\Defaults', 'setComponentPath'], 999, 2);

// Load ./Components/{$componentName}/functions.php from every registered component.
add_action('Flynt/registerComponent', ['Flynt\Defaults', 'loadFunctionsFile']);

// Render `./Components/{$componentName}/index.php` and make view helper functions `$data` and `$area` available (see explanation below).
add_filter('Flynt/renderComponent', ['Flynt\Defaults', 'renderComponent'], 999, 4);
```

With the 'Flynt/renderComponent' filter added above you can now use the following helper functions in your template files:

- `$data` is used to access the component's data in the view template.
- `$area` is used to include the HTML of an area's components into the components template itself.

[You can read the full documentation here.](https://docs.flyntwp.com/guide/core/)

Maintainers
-----------

[](#maintainers)

This project is maintained by [bleech](https://github.com/bleech).

The main people in charge of this repo are:

- [Dominik Tränklein](https://github.com/domtra)
- [Doğa Gürdal](https://github.com/Qakulukiam)

Contribute
----------

[](#contribute)

To contribute, please use GitHub [issues](https://github.com/flyntwp/flynt-core/issues). Pull requests are accepted. Please also take a moment to read the [Contributing Guidelines](https://github.com/flyntwp/guidelines/blob/master/CONTRIBUTING.md) and [Code of Conduct](https://github.com/flyntwp/guidelines/blob/master/CODE_OF_CONDUCT.md).

If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.

License
-------

[](#license)

MIT © [bleech](https://www.bleech.de)

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 94.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

Unknown

Total

1

Last Release

3386d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/24416031?v=4)[Flynt – Component Based WordPress Development](/maintainers/flyntwp)[@flyntwp](https://github.com/flyntwp)

---

Top Contributors

[![domtra](https://avatars.githubusercontent.com/u/519908?v=4)](https://github.com/domtra "domtra (52 commits)")[![emcarru](https://avatars.githubusercontent.com/u/2886550?v=4)](https://github.com/emcarru "emcarru (3 commits)")

---

Tags

composer-packageflynt-frameworkphpwordpress-plugin

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/flyntwp-flynt-core/health.svg)

```
[![Health](https://phpackages.com/badges/flyntwp-flynt-core/health.svg)](https://phpackages.com/packages/flyntwp-flynt-core)
```

###  Alternatives

[silverstripe/framework

The SilverStripe framework

7313.7M2.8k](/packages/silverstripe-framework)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.1k17.8k](/packages/prestashop-prestashop)[october/rain

October Rain Library

1601.7M83](/packages/october-rain)[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.5k10](/packages/helsingborg-stad-municipio)[drupal/recommended-project

Project template for Drupal projects with a relocated document root

1502.8M1](/packages/drupal-recommended-project)[elgg/elgg

Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.

1.7k16.4k79](/packages/elgg-elgg)

PHPackages © 2026

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