https://github.com/scraly/elephpants-front
UI/Front in PHP, served by FrankenPHP, to display elePHpants cute drawing from elephpants-api in Go.
https://github.com/scraly/elephpants-front
docker elephpants frankenphp php
Last synced: 9 days ago
JSON representation
UI/Front in PHP, served by FrankenPHP, to display elePHpants cute drawing from elephpants-api in Go.
- Host: GitHub
- URL: https://github.com/scraly/elephpants-front
- Owner: scraly
- Created: 2025-09-23T06:49:53.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-09-23T07:06:39.000Z (9 months ago)
- Last Synced: 2026-05-29T10:19:30.144Z (19 days ago)
- Topics: docker, elephpants, frankenphp, php
- Language: PHP
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# elephpants-front: PHP application with FrankenPHP application server
This tiny app allows users to display our cute ElePHPants (served by [scraly/elephpants-api](https://github.com/scraly/elephpants-api) API).
# Build and run locally
```bash
docker build -t scraly/elephpants-front:0.0.3 . --push
docker run -it --rm --name elephpants-front2 -e SERVER_NAME=":80" -p 80:80 scraly/elephpants-front:0.0.4
```
Test:
```bash
curl https://localhost/app.php
```
# Deploy to Kubernetes
```bash
#server is listening only on the HTTP port, so no automatic HTTPS will be applied to this server
kubectl run elephpants-front --image=scraly/elephpants-front:0.0.4 --env="SERVER_NAME=:80" --port=80
kubectl expose pod elephpants-front --type=LoadBalancer --port=80 --target-port=80 -n demo
```
# FrankenPHP
```bash
docker run -v $PWD:/app -p 80:80 -p 443:443 dunglas/frankenphp
```
Test:
```bash
curl https://localhost/app.php
```