Skip to content

joseluisq/php-app

Repository files navigation

PHP App

A simple PHP application example using Leap.

Requirements

PHP 8.1 or newer.

Directory Structure

.
├── 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

composer install
php -S [::]:8088 -t public/

Docker Compose

composer install
docker-compose up

About

A very simple PHP 8.1 web application example using Leap (experimental)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published