Skip to content
/ lucern Public template

PHP framework for creating HTTP APIs

Notifications You must be signed in to change notification settings

aminnairi/lucern

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.