PHPackages                             faxity/anax-layout - 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. faxity/anax-layout

AbandonedArchivedLibrary

faxity/anax-layout
==================

An Anax module for a modern and simplified layout.

v1.0.6(6y ago)070MITPHPPHP ^7.2

Since Dec 19Pushed 6y ago1 watchersCompare

[ Source](https://github.com/iFaxity/anax-layout)[ Packagist](https://packagist.org/packages/faxity/anax-layout)[ RSS](/packages/faxity-anax-layout/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependencies (8)Versions (8)Used By (0)

faxity/anax-layout
==================

[](#faxityanax-layout)

[![Build Status](https://camo.githubusercontent.com/75078a3e75e98b110beb8ef4033ea6933bf855e4db818d1babdcc4f6a371183c/68747470733a2f2f7472617669732d63692e636f6d2f694661786974792f616e61782d6c61796f75742e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/iFaxity/anax-layout)[![Build Status](https://camo.githubusercontent.com/2afe63f970d7047e7c38db9e0adb148ecce8aa39a6a37798656e9333e8d0b4d9/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f694661786974792f616e61782d6c61796f75742f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/iFaxity/anax-layout/build-status/master)[![Code Coverage](https://camo.githubusercontent.com/78b5e9cc24cd9eca2e4b769f2835dc534384171a599d30629e968f5852e41a43/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f694661786974792f616e61782d6c61796f75742f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/iFaxity/anax-layout/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/c5dd26af67ff3357741fc5cb1aee0d06be0b3e19fb84a328df867e66f629bc3c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f694661786974792f616e61782d6c61796f75742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/iFaxity/anax-layout/?branch=master)

An Anax module for a modern and simplified layout, also includes a nice flash DI module.

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

[](#installation)

To install the package using composer:

`composer require faxity/anax-layout`

Then after that you need to copy over the `view/`, `/config`, and optionally the `theme/` folders. For example with rsync:

```
mkdir view/ && rsync -av vendor/faxity/anax-layout/view view/
mkdir theme && rsync -av vendor/faxity/anax-layout/theme/ theme/
```

Or if you use the [faxity/di-sorcery](https://packagist.org/packages/faxity/di-sorcery) as the DI manager, you can just add `faxity/anax-layout` to the sorcery config file.

Then you need to update the `config/page.php` file to use the layout. The normal template can be substituted like this:

```
"layout" => [
    "region" => "layout",
    // Change here to use your own templatefile as layout
    "template" => "faxity/layout/default",
    // ..rest
],
"views" => [
    [
        "region"   => "header-logo",
        "template" => "faxity/navbar/logo",
        // ..rest
    ],
    [
        "region"   => "header",
        "template" => "faxity/navbar/header",
        // ..rest
    ],
    [
        "region"   => "header-mobile",
        "template" => "faxity/navbar/responsive",
        // ..rest
    ],
    [
        "region"   => "footer",
        "template" => "faxity/columns/default",
        // ..rest
    ],
],
```

Flash module
------------

[](#flash-module)

The builtin flash module can be used to show flash messages to the user. Assuming the installation steps above have been followed correctly, it's already installed. To use it just use:

```
//$di is the di package manager in Anax
$di->flash->ok("ok message");
$di->flash->warn("warning message");
$di->flash->err("error message");

// The flash messages by default are set in the session for the next request
// However to set a flash message in the current request just set the second argument to true
$di->flash->ok("immediate ok message", true);
$di->flash->warn("immediate warning message", true);
$di->flash->err("immediate error message", true);
```

SCSS Theming
------------

[](#scss-theming)

There is theming with default styles using SASS in the `theme/` folder of this module. To use it include it like this:

```
// ./vendor assuming the main .scss file is in the root folder
@import './vendor/faxity/anax-layout/theme/theme';
```

Navbar javascript code
----------------------

[](#navbar-javascript-code)

Javascripts for the navbar are not automatically loaded and needs to be copied over. This can be done easily via i.e rsync:

```
rsync -av vendor/faxity/anax-layout/htdocs htdocs/
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~4 days

Total

7

Last Release

2312d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17364774?v=4)[faxity](/maintainers/faxity)[@Faxity](https://github.com/Faxity)

---

Top Contributors

[![iFaxity](https://avatars.githubusercontent.com/u/9090703?v=4)](https://github.com/iFaxity "iFaxity (17 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/faxity-anax-layout/health.svg)

```
[![Health](https://phpackages.com/badges/faxity-anax-layout/health.svg)](https://phpackages.com/packages/faxity-anax-layout)
```

PHPackages © 2026

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