承接 kfiros/this-is-not-xampp 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kfiros/this-is-not-xampp

最新稳定版本:3.0

Composer 安装命令:

composer create-project kfiros/this-is-not-xampp

包简介

A template to set up a local PHP development environment using Docker

README 文档

README

Packagist Version

This is a simple docker-compose setup for local PHP development environment. It includes the following services:

  • PHP - php:8.2-apache
  • MySQL - mysql:8.0
  • phpMyAdmin - phpmyadmin/phpmyadmin
  • xdebug (preconfigured to work with PhpStorm)

Requirements

Environment setup

Run the following commands to setup the project:

composer create-project kfiros/xampp-to-docker [project-name]

Alternatively you can copy the files to a directory or clone the repository.

Usage

  1. Run docker compose up if you have docker 3.6 or newer, or docker-compose up if you have an older version.
  2. Open your browser and navigate to http://localhost to see the magic (and http://localhost:8081 for phpMyAdmin).

MySQL gotchas

  • The MySQL data is stored in the mysql-data directory. If you want to reset the database, you can delete this directory.
  • To access the MySQL database from your code, the host is host.docker.internal and not 127.0.0.1.

I have taken inspiration from jlucky/docker-php-dev-env that does the same thing but with nginx instead of apache. I have also added phpMyAdmin to the setup.

统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-11-26