PHPackages                             julces/oneframework - 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. julces/oneframework

AbandonedArchivedLibrary[Framework](/categories/framework)

julces/oneframework
===================

One PHP Restful Microframework

0.6.0(10y ago)891.1k24[4 issues](https://github.com/juliomatcom/one-php-microframework/issues)MITPHPPHP &gt;=5.3.0

Since Mar 1Pushed 7y ago18 watchersCompare

[ Source](https://github.com/juliomatcom/one-php-microframework)[ Packagist](https://packagist.org/packages/julces/oneframework)[ Docs](https://github.com/juliomatcom/one-php-microframework)[ RSS](/packages/julces-oneframework/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (24)Used By (0)

One PHP MicroFramework
======================

[](#one-php-microframework)

An extremely light-weight and small Restful Micro-Framework MVC for Web 2.0 that doesn't get in your way, based on Symfony and ExpressJS. No Config.

[![Build Status](https://camo.githubusercontent.com/ab0b6b10941bb6bbbff70301a2f68b1b315c2e7028b8d3369df75bd77e85ede1/68747470733a2f2f7472617669732d63692e6f72672f6a756c696f6d6174636f6d2f6f6e652d7068702d6d6963726f6672616d65776f726b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/juliomatcom/one-php-microframework)[![Latest Stable Version](https://camo.githubusercontent.com/ddb8221eb19af1cbc35545d797887d0cd6871a9728bf29dca924b37e7da98a75/68747470733a2f2f706f7365722e707567782e6f72672f6a756c6365732f6f6e656672616d65776f726b2f762f737461626c65)](https://packagist.org/packages/julces/oneframework)[![Latest Unstable Version](https://camo.githubusercontent.com/cf2053a059f066b23f24ba2a9c099b38d2bd739c17afc589ef35a09a2f8868a5/68747470733a2f2f706f7365722e707567782e6f72672f6a756c6365732f6f6e656672616d65776f726b2f762f756e737461626c65)](https://packagist.org/packages/julces/oneframework)[![License](https://camo.githubusercontent.com/ff4da5619c0829cc9bdbd38b1165274aaeb48638559914558674e5f672610411/68747470733a2f2f706f7365722e707567782e6f72672f6a756c6365732f6f6e656672616d65776f726b2f6c6963656e7365)](https://packagist.org/packages/julces/oneframework)

### 📢 *I stopped developing new features for OnePHP. If you feel like you have the time, you are welcome to [contact me](https://twitter.com/juliomatcom) or [PR](https://github.com/juliomatcom/one-php-microframework/pulls) and keep this cool framework up to date.*

[](#loudspeaker-i-stopped-developing-new-features-for-onephp-if-you-feel-like-you-have-the-time-you-are-welcome-to-contact-me-or-pr-and-keep-this-cool-framework-up-to-date)

---

Simplest usage:
---------------

[](#simplest-usage)

```
// index.php
require_once('src/OnePHP/one_framework.php');
$app = new \OnePHP\App();

$app->get('/:name',function( $name ) use ( $app ){//Action
  echo "Hello $name";
});
$app->listen();
```

### Install:

[](#install)

1- With [**Composer**](https://getcomposer.org/ "download Composer") or download Master [**ZIP**](https://github.com/juliomatcom/one-php-microframework/archive/master.zip "download One PHP Master version"):

```
composer create-project julces/oneframework

```

2- Include **one\_framework.php** in your project and copy the **.htaccess** file in the **Root Folder** to use the **index.php** as your front controller. See **file structure** [here](docs/structure.md) for more info.
3- Run **App-&gt;listen()** after adding some Actions

### Why use this tiny Microframework?

[](#why-use-this-tiny-microframework)

**One PHP** is perfect for you if you need to quickly write **small** and **fast** Web 2.0 applications with:
1- **Restful** Routes
2- Easy and clean (GET, POST, PUT, DELETE...) **Requests** management
3- Restful **Response** with **HTTP Status Code** and custom **Headers**
4- **PHP** native **Views**
5- **No dependencies**, add extra libraries only when you need it.

#### Do not use One PHP if:

[](#do-not-use-one-php-if)

1- You are building big full stack projects
2- You need big **built-in** libraries like Doctrine and others

### Basic Usage 2: Respond to all Requests (if no other match)

[](#basic-usage-2-respond-to-all-requests-if-no-other-match)

```
$app->respond( function() use ( $app ){
  return $app->ResponseHTML(' This is a response with code 404. ', 404);
});
```

Read the [Documentation](docs/contents.md "Documentation")
----------------------------------------------------------

[](#read-the-documentation)

### Contribute, it's easy!

[](#contribute-its-easy)

Found a **bug**, need **directions**or just want to say hi ?
Let me know, **Fork** the project, create an **issue** or **contact** me.

Follow [@juliomatcom](https://twitter.com/juliomatcom "News and updates") to keep up to date

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 99% 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 ~17 days

Recently: every ~70 days

Total

22

Last Release

3723d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/79af8cfaa2b365fa81cd082c221a240810bf80f5edeb899bf765efe1c742f699?d=identicon)[juliomatcom](/maintainers/juliomatcom)

---

Top Contributors

[![juliomatcom](https://avatars.githubusercontent.com/u/8549955?v=4)](https://github.com/juliomatcom "juliomatcom (97 commits)")[![Zemistr](https://avatars.githubusercontent.com/u/2613208?v=4)](https://github.com/Zemistr "Zemistr (1 commits)")

---

Tags

micro-frameworkphpphpmicromicroframeworkrestfulminimalistone

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/julces-oneframework/health.svg)

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

###  Alternatives

[aplus/one

Aplus Framework One Project

2351.6M1](/packages/aplus-one)[vlucas/bulletphp

A heierarchical resource-oriented micro-framework built on nested closures instead of route-based callbacks

41949.9k1](/packages/vlucas-bulletphp)[patricksavalle/slim-rest-api

Production-grade REST-API App-class for PHP SLIM, in production on https://zaplog.pro (https://api.zaplog.pro/v1)

101.4k](/packages/patricksavalle-slim-rest-api)

PHPackages © 2026

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