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

ActiveLibrary[Framework](/categories/framework)

hgh/fox-framework
=================

The mini framework

v1.2.3(5y ago)1311MITPHP

Since Jul 14Pushed 5y ago1 watchersCompare

[ Source](https://github.com/H-Gh/fox-framework)[ Packagist](https://packagist.org/packages/hgh/fox-framework)[ RSS](/packages/hgh-fox-framework/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (3)Versions (15)Used By (1)

Fox
===

[](#fox)

[![Fox](images/fox-128.png)](images/fox-128.png)

This is a mini framework to run some basic web apps.

Table of contents
=================

[](#table-of-contents)

- [Installation](#installation)
- [Folder structure of the framework](#folder-structure-of-the-framework)
- [Controllers](#controllers)
- [Models](#models)
- [Console](#console)
- [Environment variables](#environment-variables)

Installation
============

[](#installation)

require the package by following composer command:

```
composer require hgh/fox-framework

```

Folder structure of the framework
=================================

[](#folder-structure-of-the-framework)

The folder structure of the app is:

```
 - app
 ----- Console
 ---------- Commands
 ----- Http
 ---------- Controllers
 ----- Models
 - public
 ----- index.php
 - resources
 ----- views
 - storage
 ----- logs

```

Controllers
===========

[](#controllers)

The controllers to render the web pages. All the controllers must be extended from `Fox/Controller/Controller`. The parent class will provide some common methods. The list of methods:

- render
- json

Models
======

[](#models)

The models to interact with the database. All the models must be extended from `Fox/Database/Model`. The parent method will provide some methods to interact with database. The list of all methods:

- find(static)
- insert(static)
- findOne(static)

Console
=======

[](#console)

The commands to run some actions in the CLI. All the consoles must be extended from `Fox/Console/Console`. Sone notes that must considered:

- All the commands must have the `SIGNATURE` const to use in the console. like `sample:action`
- `SINGATURE` may have the arguments. Arguments must be surrounded by the `{}`. `sample:action {sampleArgument}`
- Optional arguments must have `?` before the argument name. like `sample:action {?sampleArgument}`

Environment variables
=====================

[](#environment-variables)

VariableDescriptionAvailable valuesDATABASEThe engine of database`mysql`MYSQL\_HOSTThe host of MySQLanythingMYSQL\_USERNAMEThe username of MySQLanythingMYSQL\_PASSWORDThe password of MySQLanythingMYSQL\_PORTThe port of MySQLanythingMYSQL\_DATABASEThe database nameanythingAPP\_DEBUGDebug mode of application. When it is on you can see the errors and their trace`true` or `false`

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity62

Established project with proven stability

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 ~18 days

Recently: every ~0 days

Total

13

Last Release

1912d ago

Major Versions

v0.2.0 → v1.2.12021-02-21

### Community

Maintainers

![](https://www.gravatar.com/avatar/7873222f18ced9739dd54f5bcfa13a8d9738496d22b38ff35d9f4b5b84f3269b?d=identicon)[h.gh](/maintainers/h.gh)

### Embed Badge

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

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

###  Alternatives

[laravel/dusk

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

1.9k36.7M259](/packages/laravel-dusk)[doppar/framework

The Doppar Framework

366.7k8](/packages/doppar-framework)[lion/bundle

Lion-framework configuration and initialization package

122.2k1](/packages/lion-bundle)

PHPackages © 2026

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