PHPackages                             olsonhost/phat - 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. olsonhost/phat

ActiveLibrary

olsonhost/phat
==============

Fred is a template engine for the Yore framework

09PHP

Since Aug 22Pushed 1y ago1 watchersCompare

[ Source](https://github.com/olsonhost/fred)[ Packagist](https://packagist.org/packages/olsonhost/phat)[ RSS](/packages/olsonhost-phat/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

FRED
====

[](#fred)

### (A portmanteau of Php and @)

[](#a-portmanteau-of-php-and-)

I HAVE CHANGED THE NAME OF THIS PACKAGE TO "FRED"
=================================================

[](#i-have-changed-the-name-of-this-package-to-fred)

### This tool is going to be platform agnostic so we won't be parsing Php in it

[](#this-tool-is-going-to-be-platform-agnostic-so-we-wont-be-parsing-php-in-it)

#### Hence the old name "Phat" or "Ph@", while terrible, don't really apply to this thing

[](#hence-the-old-name-phat-or-ph-while-terrible-dont-really-apply-to-this-thing)

##### And since it has the syntax of ye old "Framework Fred" of Yore (see what I did there?) I think that "Fred" is a cool name for this.

[](#and-since-it-has-the-syntax-of-ye-old-framework-fred-of-yore-see-what-i-did-there-i-think-that-fred-is-a-cool-name-for-this)

###### Also my frog is named Fred

[](#also-my-frog-is-named-fred)

- And I have a brother named Fred
    - Somewhere
        - In Texas I think
            - He has a wife, you know

@blackrush()

returns

```

 ▄▄▄▄    ██▓    ▄▄▄       ▄████▄   ██ ▄█▀ ██▀███   █    ██   ██████  ██░ ██
▓█████▄ ▓██▒   ▒████▄    ▒██▀ ▀█   ██▄█▒ ▓██ ▒ ██▒ ██  ▓██▒▒██    ▒ ▓██░ ██▒
▒██▒ ▄██▒██░   ▒██  ▀█▄  ▒▓█    ▄ ▓███▄░ ▓██ ░▄█ ▒▓██  ▒██░░ ▓██▄   ▒██▀▀██░
▒██░█▀  ▒██░   ░██▄▄▄▄██ ▒▓▓▄ ▄██▒▓██ █▄ ▒██▀▀█▄  ▓▓█  ░██░  ▒   ██▒░▓█ ░██
░▓█  ▀█▓░██████▒▓█   ▓██▒▒ ▓███▀ ░▒██▒ █▄░██▓ ▒██▒▒▒█████▓ ▒██████▒▒░▓█▒░██▓
░▒▓███▀▒░ ▒░▓  ░▒▒   ▓▒█░░ ░▒ ▒  ░▒ ▒▒ ▓▒░ ▒▓ ░▒▓░░▒▓▒ ▒ ▒ ▒ ▒▓▒ ▒ ░ ▒ ░░▒░▒
▒░▒   ░ ░ ░ ▒  ░ ▒   ▒▒ ░  ░  ▒   ░ ░▒ ▒░  ░▒ ░ ▒░░░▒░ ░ ░ ░ ░▒  ░ ░ ▒ ░▒░ ░
 ░    ░   ░ ░    ░   ▒   ░        ░ ░░ ░   ░░   ░  ░░░ ░ ░ ░  ░  ░   ░  ░░ ░
 ░          ░  ░     ░  ░░ ░      ░  ░      ░        ░           ░   ░  ░  ░
      ░                  ░

```

You can do other stuff too. Like markdown and several "@" functions designed to work with Yore such as

@asset('dir/file.ext') - Returns a full path to an asset (usually an image) in the current site's theme

@body() - returns the page body as defined in the page JSON (you can use this instead of or in addition to HTML in your view file)

@data('var') - returns any top level element of the current page's JSON object. For examlle @data('body') would be the same as @body()

@edit('/dir/dir/file.txt') - returns the HTML for an edit button to allow the user to edit a server file (off of the web root) in the browser. For example, @edit(#view) will return HTML for a button to edit the current view file source code

\#view - returns the path and file name (relative to web root) of the current view

SQML
====

[](#sqml)

Doors
=====

[](#doors)

Short Codes
===========

[](#short-codes)

Extending with Modules
======================

[](#extending-with-modules)

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity17

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![olsonhost](https://avatars.githubusercontent.com/u/41242532?v=4)](https://github.com/olsonhost "olsonhost (3 commits)")

### Embed Badge

![Health badge](/badges/olsonhost-phat/health.svg)

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

PHPackages © 2026

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