PHPackages                             upfor/upforphp - 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. upfor/upforphp

ActiveLibrary[Framework](/categories/framework)

upfor/upforphp
==============

Upfor PHP Framework

0.0.7(10y ago)4271MITPHPPHP &gt;=5.4.0

Since May 3Pushed 10y ago4 watchersCompare

[ Source](https://github.com/upfor/upforphp)[ Packagist](https://packagist.org/packages/upfor/upforphp)[ Docs](https://github.com/upfor/upforphp)[ RSS](/packages/upfor-upforphp/feed)WikiDiscussions master Synced yesterday

READMEChangelog (7)DependenciesVersions (8)Used By (0)

[Upfor Framework](http://framework.upfor.club)
==============================================

[](#upfor-framework)

Upfor is a simple, extensible framework for PHP. Upfor can help you quickly build simple yet powerful web applications.

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

[](#installation)

### 1. Download the files

[](#1-download-the-files)

If you’re using [Composer](https://getcomposer.org), you can run the following command:

```
composer require upfor/upforphp

```

OR you can [download](https://github.com/upfor/upforphp/archive/master.zip) them directly and extract them to your web directory.

### 2. Configure webserver

[](#2-configure-webserver)

#### PHP built-in server

[](#php-built-in-server)

```
php -S 0.0.0.0:8080 -t ./public

```

#### Apache configuration

[](#apache-configuration)

Make sure your Apache virtual host is configured with the `AllowOverride` option. Ensure your `.htaccess` file and contain this code:

```
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]

```

#### Nginx configuration

[](#nginx-configuration)

For Nginx, add the following to your server declaration:

```
location / {
    try_files $uri $uri/ /index.php$is_args$args;
}

```

### 3. Create index.php file

[](#3-create-indexphp-file)

First, include the autoloader and register a namespace.

```
define("ROOT", dirname(realpath(__DIR__)));
require ROOT . '/src/Autoloader.php';
$autoloader = new \Upfor\Autoloader();
$autoloader->addNamespace('Upfor\\', ROOT . '/src/');
$autoloader->register();

```

If you’re using Composer, run the autoloader instead.

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

```

Create and configure app.

```
$app = new \Upfor\App();

```

Define the application routes.

```
$route = $app->get('/', function () {
    echo 'Hello World!';
});

```

Finaly, run the application.

```
$app->run();

```

> If you are not using the Composer, you must manually require the helpers: `require ROOT . '/src/Helper/helpers.php';`

Requirements
------------

[](#requirements)

Upfor requires PHP 5.4.0 or greater.

License
-------

[](#license)

Upfor Framework is released under the MIT license.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity53

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

3670d ago

PHP version history (2 changes)0.0.1PHP &gt;=5.3.9

0.0.3PHP &gt;=5.4.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5518985?v=4)[Jioby](/maintainers/shockerli)[@shockerli](https://github.com/shockerli)

---

Top Contributors

[![shockerli](https://avatars.githubusercontent.com/u/5518985?v=4)](https://github.com/shockerli "shockerli (12 commits)")

---

Tags

frameworkphpphpapiframeworkupfor

### Embed Badge

![Health badge](/badges/upfor-upforphp/health.svg)

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

###  Alternatives

[digitalstars/simplevk

Powerful PHP library/framework for VK API bots, supporting LongPoll &amp; Callback &amp; OAuth

924.2k3](/packages/digitalstars-simplevk)[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)
