Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joseluisq/php-app
A very simple PHP 8.1 web application example using Leap (experimental)
https://github.com/joseluisq/php-app
docker-compose php php81 webapp
Last synced: 8 days ago
JSON representation
A very simple PHP 8.1 web application example using Leap (experimental)
- Host: GitHub
- URL: https://github.com/joseluisq/php-app
- Owner: joseluisq
- Created: 2022-03-31T22:24:27.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-11-13T23:15:37.000Z (almost 2 years ago)
- Last Synced: 2024-04-14T02:10:35.873Z (7 months ago)
- Topics: docker-compose, php, php81, webapp
- Language: PHP
- Homepage:
- Size: 35.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PHP App
> A simple PHP application example using [Leap](https://github.com/joseluisq/leap).
## Requirements
[PHP 8.1](https://www.php.net/releases/8.1/en.php) or newer.
## Directory Structure
```sh
.
├── cache/ # Optional cache folder
├── config/ # Configuration folder
│ └── Config.php
├── controllers/ # Controllers folder
│ └── HomeCtrl.php
├── core/ # Application core utilities
├── database/ # Database-related folder
├── logs/ # Logging files folder (optional)
├── public/ # Web server folder
│ ├── assets/
│ └── index.php
├── routes/ # Routes folder
│ └── Routes.php
├── tests/ # Testing-related folder
├── views/ # Application views/templates folder
│ └── home.html
├── bootstrap.php # Application entrypoint
├── composer.json
├── environment.env # Environment template file to setup an app
├── phpstan.neon
├── phpunit.xml
```## Usage
__Built-in server__
```sh
composer install
php -S [::]:8088 -t public/
```__Docker Compose__
```sh
composer install
docker-compose up
```