PHPackages                             webglue/webglue - 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. webglue/webglue

ActiveLibrary[Framework](/categories/framework)

webglue/webglue
===============

Framework in one file

119PHP

Since May 1Pushed 13y agoCompare

[ Source](https://github.com/wkjagt/WebGlue)[ Packagist](https://packagist.org/packages/webglue/webglue)[ RSS](/packages/webglue-webglue/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

WebGlue
=======

[](#webglue)

WebGlue is a tiny web framework. Actually it's nothing more than some glue between the [Symfony HttpFoundation](https://github.com/symfony/HttpFoundation) Request and Response object, and a very simple router. I find it helps me a lot for quick prototyping and small projects.

\#Usage

Very simple:

1. Instantiate WebGlue
2. Add services to instance using array notation *(optional)*
3. Add routes using following syntax `$app->(, );`
4. Your callback will get 3 arguments passed to it: the WebGlue instance, a request object, a response object
5. Modify the response to your needs. You don't need to return it.

\#Examples

\##Hello Willem

```
$app = new WebGlue;

// for routes accepting POST, use $app->post, etc.
$app->get('/', function($app, $request, $response){
    $response->setContent('hello world');
});

$app->get('/greet/{name:string}', function($app, $request, $response){
    $name = $request->attributes->get('name');
    $response->setContent('hello ' . $name);
});

$app->run();
```

\##Add services

```
$app = new WebGlue;

// add the excellent Twig templating engine
$app['twig'] = new Twig_Environment(new Twig_Loader_Filesystem(__DIR__.'/templates'));

$app->get('/', function($app, $request, $response){
    $response->setContent(app['twig']->render('hello_world.html.twig'));
});
```

\##Use composer

Only master for now...

```
{
    "require" : {
        "webglue/webglue": "dev-master"
    }
}
```

and

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

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6a08b8e66af74c9c026531b1cd2beed788a544e0526d678a02a2dfc0e3305dbb?d=identicon)[wkjagt](/maintainers/wkjagt)

---

Top Contributors

[![wkjagt](https://avatars.githubusercontent.com/u/327048?v=4)](https://github.com/wkjagt "wkjagt (24 commits)")

### Embed Badge

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

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

###  Alternatives

[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k39.6M299](/packages/laravel-dusk)[nineinchnick/edatatables

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

173.2k](/packages/nineinchnick-edatatables)[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)
