Project description

Installs: 3 542

Dependents: 1

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 0

Open Issues: 0


v0.2 2020-04-23 10:29 UTC

This package is auto-updated.

Last update: 2024-06-09 07:43:36 UTC


Quick prototyping framework. Includes:

See our Interactive Demo!

Quick start

Your brand new status page can look like this within 30 seconds. StatusPage

Install library using composer:

composer require phore/status-page

Create your /www/index.php:

namespace App;
use Phore\StatusPage\PageHandler\NaviButtonWithIcon;
use Phore\StatusPage\StatusPageApp;

require __DIR__ . "/../vendor/autoload.php"; // Point to your composer vendor directory here!

$app = new StatusPageApp("MyApplication");

$app->addPage("/", function () {
    return ["h1" => "hello world"];
}, new NaviButtonWithIcon("Home", "fas fa-home"));


Create a .htaccess file to define the fallback-resource: (If using kickstart, define apache_fallback_resource: "/index.php" in your .kick.yml)

FallbackResource /index.php


Authentication (HTTP Basic)

$app = new BasicAuthStatusPageApp();
$app->allowUser("admin", "admin");


Mouting the application in a subdirectory

Just create a subdirectory and a .htaccess file pointing to the subdirectories index file:

FallbackResource /subdir/index.php

Create the index.php and specifiy the subdirectories name as second constructor argument:


$app = new StatusPageApp("SomeName", "/subdir");
$app->addPage("/subdir/", function() {
    return ["h1"=>"SubApp"];


$data = ["a", "b", "c"];

$tblData = phore_array_transform($data, function($key, $value) {
    return [
        date ("Y-m-d"),
        ["a @href=/some/other" => "Hello Column"]

$tbl = pt()->basic_table(
    ["Date",    "Comment"],
    ["",        "@align=right"]