An open API service indexing awesome lists of open source software.

https://github.com/phore/phore-status-page

A basic html status page for microservices management
https://github.com/phore/phore-status-page

Last synced: 5 months ago
JSON representation

A basic html status page for microservices management

Awesome Lists containing this project

README

          

# Phore Status Page - Fastest way to generate a Status page

Quick prototyping framework. Includes:

- [Bootstrap 4](https://getbootstrap.com)
- [CoreUI](https://coreui.io/)
- [FontAwesome](https://fontawesome.com)

See our **[Interactive Demo](https://phore.github.io/phore-status-page/localhost/)**!

## Quick start

Your brand new status page can look like this within 30 seconds.
![StatusPage](doc/coreui-screenshot.png)

Install library using composer:
```bash
composer require phore/status-page
```

Create your `/www/index.php`:
```php
addPage("/", function () {
return ["h1" => "hello world"];
}, new NaviButtonWithIcon("Home", "fas fa-home"));

$app->serve();
```

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
```

***Done!***

## Authentication (HTTP Basic)

```php
allowUser("admin", "admin");

```

## Features

### 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:

```php
addPage("/subdir/", function() {
return ["h1"=>"SubApp"];
});
$app->serve();
```

### Tables

```php
"Hello Column"]
];
});

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

```