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
- Host: GitHub
- URL: https://github.com/phore/phore-status-page
- Owner: phore
- Created: 2018-10-26T10:07:37.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-05-08T22:21:47.000Z (about 6 years ago)
- Last Synced: 2024-12-09T17:02:47.478Z (over 1 year ago)
- Language: Shell
- Homepage: https://infracamp.org/project/phore/
- Size: 1.33 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.

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"]
);
```