Skip to content

frammkor/php8-server-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP-Server with Docker

The propose of this repo is to practice and set the bases for the next versions of PHP-Server that will include:

  1. Migration of project to PHP 8 and Laminas Framework
  2. Improve automation and deployment in various environments
  3. Ease development experience
  4. Inclusion of new tools to improve code quality

Requirements

Stack

  • MySQL 5.7
  • Linux Kernel 5.4
  • Apache 2.4.56
  • PHP 8.3
  • Composer 2.3.2
  • Node v17.8.0

Tools

  • Laminas Project
  • Docker
  • PHPStan
  • Rector
  • Husky
  • Linter
  • Webpack
  • Vue3

Other changes

  • DB dev experience upgrade
  • Use of environmental variables on across all the stack

TODOS

  • Connect this database container with existing local db storage
  • Properly set the root user and its password
  • Move this information to Docker secrets
  • Properly set the db user and its password to access from the phpmyadmin

Sources

Docker

Build a Full Stack Web App in PHP and MySQL with Docker from scratch! Docker and PHP Full Course Docker and PHP Full Course REPO PHP web development environment with Docker tutorial - 001

ENV EXAMPLE: Laravel Docker Course | Complete Laravel Dockerization

Laminas

Getting Started with Laminas A skeleton application

Can be useful to understand all the elements components and services that are used in Laminas when creating entities: starterKit

Laminas project structure Laminas Tutorial Espanol Getting started with Laminas MVC PHP 8 and Doctrine ORM Album Module

PHPStan and other tools

Measure PHP Code Quality With Static Analysis Using PHPStan adamculp/php-code-quality

To watch

Usage

From the root directory run 'docker-composer up -d' to start all the services

To access a terminal on any service's container run docker-compose exec <service-name> /bin/bash In the case of the server run docker-compose exec server /bin/bash

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published