PHPackages                             fhc/framework - 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. fhc/framework

ActiveLibrary[Framework](/categories/framework)

fhc/framework
=============

FHC(FLRngel Hates Coding) PHP Framework

v1.5.1(11y ago)9144PHP

Since Sep 11Pushed 11y ago2 watchersCompare

[ Source](https://github.com/flrngel/FHC-Framework)[ Packagist](https://packagist.org/packages/fhc/framework)[ RSS](/packages/fhc-framework/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (2)DependenciesVersions (12)Used By (0)

FHC-Framework
=============

[](#fhc-framework)

FHC(FLRngel Hates Coding) PHP Framework

The framework using MVC Model, rails folder structure(about 80%), and ultra easy to use.

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

[](#requirements)

Apache2 (mod\_rewrite)

PHP ( &gt;= 5.3 )

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

[](#installation)

```
git clone https://github.com/flrngel/FHC-Framework
cd
./install.sh

```

or use [FHC-Gaia](https://github.com/flrngel/FHC-Gaia)

```
gaia new

```

Understanding how it works
--------------------------

[](#understanding-how-it-works)

Architecture
------------

[](#architecture)

- `/index.php` : FHC-Framework begins with index.php on every page.
- `/lib/include/*.php` : index.php load every php files in here.(core.php, functions, etc.)
- `/lib/classes/*.php` : class files has to be in here.
- `/lib/modules/` : not accessable directory from web request. for crons, modules, plugin build, etc.
- `/app/controllers/*.php` : controller files
- `/app/views/*.html` : view file(default matches with same controller)
- `/app/assets/` : assets for website

### MVC

[](#mvc)

- Model(class in FHC)
- Views(app/views/.html
- Controllers(app/controllers/.html

### workflow

[](#workflow)

- User requests such pattern, `GET /what/to/do`
- index.php parses request URI
- executes controller file `app/controllers/what/to/do.php`
- toss `$res` as global varable to view file
- renders view file `app/views/what/to/do.html` and get contents toss as $contents variable
- renders layout file `app/views/layout/[default].html`
- response rendered page

Usage
-----

[](#usage)

### .env file

[](#env-file)

This is inspired from [dotfiles](https://github.com/mathiasbynens/dotfiles)

FHC-Framework first loads `$_SERVER['DOCUMENT_ROOT']/.env` json file and decodes to `$_ENV` variable

as `$_ENV` is global(php default), you can use it everywhere under FHC-Framework

### Routings

[](#routings)

just create `app/controllers//.php` and access as `GET(POST) //`

### $res variable

[](#res-variable)

$res variable is defined as array, and is global variable between `controllers`, `views`, `layout`

### Classes

[](#classes)

you can use anywhere `lib/classes//.php` as `new ` from controller files

### Update

[](#update)

use [FHC-Gaia](https://github.com/flrngel/FHC-Gaia)

```
gaia update

```

Useful libraries
----------------

[](#useful-libraries)

- [sexylib](http://github.com/flrngel/sexylib)

LICENSE
-------

[](#license)

MIT

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 98.8% 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 ~36 days

Recently: every ~77 days

Total

10

Last Release

4348d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6043e60e6a2c797ecacd57fb18d1283eec57fa84caf4f845b7d3854977cb66ad?d=identicon)[flrngel](/maintainers/flrngel)

---

Top Contributors

[![flrngel](https://avatars.githubusercontent.com/u/2807595?v=4)](https://github.com/flrngel "flrngel (82 commits)")[![leesk0502](https://avatars.githubusercontent.com/u/3523337?v=4)](https://github.com/leesk0502 "leesk0502 (1 commits)")

### Embed Badge

![Health badge](/badges/fhc-framework/health.svg)

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

###  Alternatives

[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k39.6M290](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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