# learning-php **Repository Path**: kuibugogo/learning-php ## Basic Information - **Project Name**: learning-php - **Description**: 学习PHP编程 - **Primary Language**: PHP - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-05-18 - **Last Updated**: 2020-12-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # learning-php(PHP语言学习与应用) PHP的运行环境基于Docker容器,在```docker```目录中,有开发和运行环境搭建的```docker-compose.yml```文件,使用以下命令启动环境: ``` $ docker-compose up -d ``` 上面的命令会启动两个容器,一个是叫```php-apache```的容器,用于运行PHP脚本,可以通过设置```php service```的```volumes```配置挂载本地的任意目录作为容器解析PHP的根目录,另一个是```mysqldb```容器,是一个运行MySQL Server 5.6的数据库容器,可以通过挂载本地目录来存储容器在运行过程中产生的数据文件,下次再启动时,会自己加载这些数据