aminnairi / lucern

PHP framework for creating HTTP APIs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lucern

PHP framework for creating HTTP APIs

Requirements

Clone

git clone https://github.com/aminnairi/docker-php-nginx-mariadb-template my-project
cd my-project

Setup

cp .env.example .env

Note: edit the .env file to setup your environment.

Startup

make start

Note: you can change the port listened by the server with the SERVER_PORT environment variable by editing it in the .env file.

Database

make database

Note: this will login to your database using a command line interface using your environment setup.

Migration

make migration

Note: this migrate the datamodel into the SQL database.

Shutdown

make stop

Restart

make restart

Note: this is equivalent to running make stop start.

PHP

docker compose exec php php --version

Note: replace --version with the PHP argument of your choice.

MariaDB

docker compose exec mariadb mariadb --version

Note: replace --version with the MariaDB argument of your choice.

About

PHP framework for creating HTTP APIs


Languages

Language:PHP 97.7%Language:Dockerfile 1.2%Language:Makefile 1.1%