PHPackages                             habe-func/habe-func - 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. habe-func/habe-func

ActiveProject[Framework](/categories/framework)

habe-func/habe-func
===================

Lightweight PHP framework with API, CLI, migrations and procedural compatibility

v1.0.0(2mo ago)05PHPPHP &gt;=8.1

Since May 23Pushed 2mo agoCompare

[ Source](https://github.com/hooli-xyz-io/habe-func)[ Packagist](https://packagist.org/packages/habe-func/habe-func)[ RSS](/packages/habe-func-habe-func/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (2)Used By (0)

HabeFunc Framework 🚀
====================

[](#habefunc-framework-)

A lightweight, high-performance PHP framework combining standard procedural capabilities with a powerful object-oriented active-record ecosystem.

HabeFunc is optimized for low-latency JSON REST APIs, complete with an Active-Record ORM, automatic Laravel-style database migrations, input validation, Bearer token authentication, and a robust command-line tooling engine.

---

📖 Interactive Documentation
---------------------------

[](#-interactive-documentation)

We have generated an extremely rich, fully interactive local documentation page for HabeFunc. It includes syntax highlighting, quick search filters, copy-to-clipboard blocks, and visual tables:

👉 **Open Local Docs (docs.html)**

---

⚡ Core Features
---------------

[](#-core-features)

- **Procedural-Friendly Architecture**: Designed to transition effortlessly between simple single-file scripts and robust enterprise microservice models.
- **Expressive Routing Engine**: Fast, developer-friendly routing supporting path grouping, prefixing, namespaces, and dynamic middleware pipelines.
- **Active-Record ORM Model**: Dynamic property mappings, custom relation loaders (`hasOne`, `hasMany`, `belongsTo`), and clean dynamic CRUD methods.
- **Dual-Mode Pagination Engine**: Support for comprehensive length-aware paginators or lightweight simple paginators avoiding database count queries.
- **Input Validation**: Clean and expressive rule checking (`required`, `email`, `min:N`, `string`) prior to ORM commits.
- **API Token Security**: Native generation, verification, and revocation of persistent Bearer API tokens.
- **Nucleus CLI Scaffolder**: Scaffold models, migrations, controllers, and roll back or apply schemas on the fly.

---

🚀 Installation &amp; Quick Start
--------------------------------

[](#-installation--quick-start)

### 1. Install Composer Dependencies

[](#1-install-composer-dependencies)

```
composer install
```

### 2. Configure Environment Parameters

[](#2-configure-environment-parameters)

Copy the preloaded configuration template:

```
cp .env.example .env
```

By default, the database is preconfigured to write to a lightweight, zero-configuration SQLite database:

```
DB_DRIVER=sqlite
DB_NAME=app_db
```

### 3. Run Database Migrations

[](#3-run-database-migrations)

Initialize database tables (`users` and `api_tokens`):

```
php nucleus migrate
```

### 4. Serve the Development Server

[](#4-serve-the-development-server)

Launch the HTTP server instantly:

```
php nucleus serve
```

Your server will be running on `http://localhost:8000`.

---

🛠️ Nucleus CLI Command Reference
--------------------------------

[](#️-nucleus-cli-command-reference)

CommandDescriptionExample`php nucleus migrate`Run all pending migrations.`php nucleus migrate``php nucleus migrate:rollback`Rollback the last migration batch.`php nucleus migrate:rollback``php nucleus make:model `Scaffold a new Active-Record Model.`php nucleus make:model Post``php nucleus make:controller `Scaffold a new Controller class.`php nucleus make:controller PostsController``php nucleus make:migration `Scaffold a new Database Migration file.`php nucleus make:migration create_posts_table``php nucleus serve`Start the local PHP built-in server.`php nucleus serve`---

📄 License
---------

[](#-license)

The HabeFunc framework is open-sourced software licensed under the [MIT license](LICENSE).

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance87

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

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

Unknown

Total

1

Last Release

62d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/135322352?v=4)[Nhlanhla Ndlovu](/maintainers/mast3r-chi3f)[@mast3r-chi3f](https://github.com/mast3r-chi3f)

---

Top Contributors

[![mast3r-chi3f](https://avatars.githubusercontent.com/u/135322352?v=4)](https://github.com/mast3r-chi3f "mast3r-chi3f (2 commits)")

### Embed Badge

![Health badge](/badges/habe-func-habe-func/health.svg)

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

###  Alternatives

[nineinchnick/edatatables

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

173.2k](/packages/nineinchnick-edatatables)[alizharb/laravel-modular

A professional, framework-agnostic modular architecture for Laravel 11+. Features zero-config autoloading, 29+ Artisan command overrides, and seamless Vite integration.

211.6k9](/packages/alizharb-laravel-modular)[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)
