PHPackages                             thephprame/thephprame-core - 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. thephprame/thephprame-core

ActiveLibrary[Framework](/categories/framework)

thephprame/thephprame-core
==========================

Core of the phprame framework

v1.0.6(3mo ago)0222MITPHPPHP &gt;=8.0.0

Since Dec 21Pushed 3mo agoCompare

[ Source](https://github.com/ThePHPrame/thephprame-core)[ Packagist](https://packagist.org/packages/thephprame/thephprame-core)[ RSS](/packages/thephprame-thephprame-core/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (9)Used By (2)

thephprame-core
===============

[](#thephprame-core)

Core utilities and base classes for the phprame PHP micro-framework.

This package contains the core building blocks used by thephprame applications: base controller and model classes, HTTP request/response wrappers, routing helpers, middleware base, and lightweight helpers for files, cookies, encryption and database access.

Key Features
------------

[](#key-features)

- Minimal, framework-agnostic helpers for small apps
- Base classes: controllers, models and middleware
- Request/Response and routing support
- Small utility helpers: Files, Cookies, Encryption, Database

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

[](#installation)

If the package is available via Composer (packagist):

```
composer require thephprame/thephprame-core
```

For local development (when using this repo as a local package), add a `path` repository to your application's `composer.json` and require the package by name:

```
"repositories": [
  { "type": "path", "url": "../local-packages/thephprhame-core" }
]
```

Then run `composer require thephprame/thephprame-core` in your application.

Quick Usage
-----------

[](#quick-usage)

These examples illustrate common patterns — adapt them to your app structure.

Controllers

Extend the base controller to create action methods used by routes:

```
class HomeController extends Controller
{
    public function index()
    {
        return Response::view('home', ['name' => 'world']);
    }
}
```

Models

Create models by extending `Model` for simple DB interactions:

```
class User extends Model
{
    protected $table = 'users';
}

$user = (new User())->find(1);
```

Routing

Register routes using the `Routes` helper (see the application's `Routes` files):

```
Routes::get('/', [HomeController::class, 'index']);
Routes::post('/api/items', [ItemController::class, 'store']);
```

Request / Response

Use `Request` to access input and `Response` to send responses:

```
$name = Request::input('name', 'guest');
return Response::json(['hello' => $name]);
```

Utility Classes (brief)

- `Controller` — base controller class
- `Model` — base model with simple DB helpers
- `Routes` — route registration helpers
- `Request` / `Response` — HTTP wrappers
- `Middleware` — base middleware class
- `Database` / `DatabaseHelper` — DB connection and helpers
- `Encryption` — encryption utilities
- `File` / `Files` — file helpers
- `Cookie` / `Cookies` — cookie helpers
- `IException` — core exception interface

Contributing
------------

[](#contributing)

Contributions are welcome. Please open issues or pull requests against the repository. Keep changes focused and include tests/examples where appropriate.

License
-------

[](#license)

The package is distributed under the MIT License. See the `composer.json` for license metadata.

Authors
-------

[](#authors)

See `composer.json` authors field for package authors.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance81

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

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

Total

8

Last Release

102d ago

### Community

Maintainers

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

---

Tags

frameworkcorephprame

### Embed Badge

![Health badge](/badges/thephprame-thephprame-core/health.svg)

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

###  Alternatives

[afrux/forum-widgets-core

Core Extension for Managing Forum Widgets

1950.4k33](/packages/afrux-forum-widgets-core)[caffeina-core/core

Platform for rapid application development.

355.9k6](/packages/caffeina-core-core)

PHPackages © 2026

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