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

ActiveLibrary[Framework](/categories/framework)

pureframework/pure-framework
============================

Thin PHP framework: router, DB, forms, constraints, templates

v1.5.0(2w ago)052MITPHPPHP &gt;=8.1CI passing

Since Jun 5Pushed 2w agoCompare

[ Source](https://github.com/pureframework/pure-framework)[ Packagist](https://packagist.org/packages/pureframework/pure-framework)[ Docs](https://github.com/pureframework/pure-framework)[ RSS](/packages/pureframework-pure-framework/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (6)Dependencies (3)Versions (8)Used By (0)

Pure Framework
==============

[](#pure-framework)

[![Tests](https://github.com/pureframework/pure-framework/actions/workflows/tests.yml/badge.svg)](https://github.com/pureframework/pure-framework/actions/workflows/tests.yml)

Thin PHP library: file-based routing, PDO database helpers, forms with constraints, templates, and `html()` escaping.

**License:** [MIT](LICENSE)

Install
-------

[](#install)

```
composer require pureframework/pure-framework:^1.3
```

Packagist: [pureframework/pure-framework](https://packagist.org/packages/pureframework/pure-framework) (synced from GitHub automatically).

```
require __DIR__ . '/vendor/autoload.php';

use PureFramework\Router;
use PureFramework\DB;
```

Documentation
-------------

[](#documentation)

Full guides are in **[docs/](docs/README.md)**:

- [Getting started](docs/getting-started.md)
- [Example site layout](docs/example-site.md)
- [Installation](docs/installation.md)
- [Configuration](docs/configuration.md)
- [Architecture](docs/architecture.md)
- [Router](docs/router.md) · [Database](docs/database.md) · [Forms](docs/forms-and-validation.md) · [CSRF](docs/csrf.md) · [Session](docs/session.md) · [Phrase](docs/phrase.md) · [Security](docs/security.md) · [Templates &amp; Display](docs/templates-and-layout.md)
- [License](docs/license.md)

Development
-----------

[](#development)

```
composer install
composer test          # PHPUnit (tests/Unit/)
composer test:smoke    # alias to phpunit via tests/smoke-test.php
```

Scaffold a new application:

```
vendor/bin/pure-new-site /path/to/my-app --name="My App"
```

Generate row classes from SQL:

```
vendor/bin/pure-generate-classes /path/to/sql /path/to/dbGeneratedClasses.php
```

Philosophy
----------

[](#philosophy)

Routes map to handler PHP files. Handlers call entity functions and render co-located templates. No container, no ORM.

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance97

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity47

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

Every ~6 days

Total

7

Last Release

15d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/635ce7d3dc0bfb8dd7889ffefbc61070d7b33bf3f778c645501be142ff4659de?d=identicon)[jdsharp](/maintainers/jdsharp)

---

Top Contributors

[![jdsharp](https://avatars.githubusercontent.com/u/141104?v=4)](https://github.com/jdsharp "jdsharp (8 commits)")

---

Tags

phpframeworkvalidationrouterpdotemplatesForms

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[leafs/leaf

Elegant PHP for modern developers

1.3k48.7k11](/packages/leafs-leaf)[kompo/kompo

Laravel &amp; Vue.js FullStack Components for Rapid Application Development

12014.8k49](/packages/kompo-kompo)[scrawler/router

An Fully Automatic RESTful PHP Router.

562.2k3](/packages/scrawler-router)

PHPackages © 2026

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