PHPackages                             helvetica/standard - 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. helvetica/standard

ActiveLibrary[Framework](/categories/framework)

helvetica/standard
==================

The Standard PHP framework

1.0.1(7y ago)012MITPHPPHP &gt;=5.6.0

Since Oct 10Pushed 7y agoCompare

[ Source](https://github.com/Helvetica-2018/Standard)[ Packagist](https://packagist.org/packages/helvetica/standard)[ RSS](/packages/helvetica-standard/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (3)Versions (3)Used By (0)

Helvetica/Standard
==================

[](#helveticastandard)

[![GitHub](https://camo.githubusercontent.com/7123c32787e013be5a8a13598ad01f562754637ed6141e89b02e85bf16d3e63e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6173686170652f6170697374617475732e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/7123c32787e013be5a8a13598ad01f562754637ed6141e89b02e85bf16d3e63e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6173686170652f6170697374617475732e7376673f7374796c653d666c61742d737175617265)[![PyPI - Status](https://camo.githubusercontent.com/23adbb14a3c9a27b04c4eaa93d26470d7cc6a2ae6aabacd3d5a5b7fc1d42b870/68747470733a2f2f696d672e736869656c64732e696f2f707970692f7374617475732f446a616e676f2e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/23adbb14a3c9a27b04c4eaa93d26470d7cc6a2ae6aabacd3d5a5b7fc1d42b870/68747470733a2f2f696d672e736869656c64732e696f2f707970692f7374617475732f446a616e676f2e7376673f7374796c653d666c61742d737175617265)

#### Simple is Power

[](#simple-is-power)

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

[](#installation)

```
composer require helvetica/standard 1.0.1

```

### Import the composer autoload

[](#import-the-composer-autoload)

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

Get Start
---------

[](#get-start)

```
use Helvetica\Standard\App;
use Helvetica\Standard\Router;
use Helvetica\Standard\Library\Response;

$router = new Router();

$router->set('/hello/', function(Response $response, $name) {
    return $response->withContent('hello ' . $name);
});

(new App)->start();
```

Test with built-in server

```
php -S localhost:8080

```

Visit  to say: "hello world"

Using template
--------------

[](#using-template)

> hello.php

```
>

        Document

        hello

```

> index.php

```
use Helvetica\Standard\App;
use Helvetica\Standard\Router;
use Helvetica\Standard\Library\Template;
use Helvetica\Standard\Library\Response;

$router = new Router();

$router->set('/hello/', function(Response $response, Template $temp, $name) {
    $output = $temp->render(__DIR__ . '/hello.php', ['name' => $name]);
    return $response->withContent($output);
});

(new App)->start();
```

Visit  to say: "hello world"

Controller classes
------------------

[](#controller-classes)

> index.php

```
use Helvetica\Standard\App;
use Helvetica\Standard\Router;
use Helvetica\Standard\Library\Response;

class PrintController
{
    public function hello(Response $response, $name)
    {
        return $response->withContent('hello ' . $name);
    }
}

$router = new Router();

$router->set('/hello/', [PrintController::class, 'hello']);

(new App)->start();
```

Visit  to say: "hello world"

Using filter
------------

[](#using-filter)

```
use Helvetica\Standard\App;
use Helvetica\Standard\Router;
use Helvetica\Standard\Library\Request;
use Helvetica\Standard\Library\Response;
use Helvetica\Standard\Abstracts\ActionFilter;

class SayHelloFilter extends ActionFilter
{
    /**
     * The method hook is injectable, and has a fixed param $next.
     * You can call and return the $next closure to continue
     * or just return a response to terminate the process.
     */
    public function hook(Request $request, $next)
    {
        $params = $this->getParams();
        $name = $params['name'];
        $request->withAttributes(['text' => 'hello ' . $name]);
        return $next();
    }
}

$router = new Router();

$router->set('/hello/', function(Request $request, Response $response, $name) {
    $text = $request->getAttribute('text');
    return $response->withContent($text);
})->setFilters([SayHelloFilter::class]);

(new App)->start();
```

Visit  to say: "hello world"

Using handler
-------------

[](#using-handler)

Let's raise a 404 not found exception, and register a not found handler.

```
use Helvetica\Standard\App;
use Helvetica\Standard\Router;
use Helvetica\Standard\Exception\NotFoundException;
use Helvetica\Standard\Abstracts\HttpExceptionHandler;

$router = new Router();

$router->set('/not-found', function() {
    throw new NotFoundException();
});

// create a not found handler
class MyNotFoundHandler extends HttpExceptionHandler
{
    public function getResponse(Response $response)
    {
        return $response->withContent('This is my not found exception message.');
    }
}

$app = new App();

$app->setHandler(App::HANDLE_NOT_FOUND, MyNotFoundHandler::class);

$app->start();
```

Visit  to say: "This is my not found exception message."

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

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

Total

2

Last Release

2817d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/40904834?v=4)[O My TTY](/maintainers/omytty)[@omytty](https://github.com/omytty)

---

Top Contributors

[![omytty](https://avatars.githubusercontent.com/u/40904834?v=4)](https://github.com/omytty "omytty (22 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M19.5k](/packages/laravel-framework)[symfony/symfony

The Symfony PHP framework

31.4k87.2M2.2k](/packages/symfony-symfony)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k34](/packages/neuron-core-neuron-ai)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6941.5M400](/packages/drupal-core-recommended)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)

PHPackages © 2026

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