Skip to content

A PHP project template with PHP 8.1, Laminas Framework and Doctrine

Notifications You must be signed in to change notification settings

henrikthesing/php-project-template

Repository files navigation

PHP Project Template

Features

  • PHP 8.2
  • Doctrine
  • Laminas Framework
  • PHPStan
  • PHPUnit

ProjectTitle

Local development

Starting the container

docker-compose up -d

Creating a local .env file

cp .env.skel .env

Creating a local .doctrine.local.php.skel file

cp ./config/autoload/doctrine.local.php.skel ./config/autoload/doctrine.local.php

Running composer install.

docker-compose exec container-name composer install

Run migrations

docker-compose exec container-name php public/index.php migrations:migrate

(Optional) Jump inside the container.

docker-compose exec -it container-name bash

Debugging

  • Server: localhost:8080
  • IDE Key (session id): DEBUG

About

A PHP project template with PHP 8.1, Laminas Framework and Doctrine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published