<commit_before># PHP Development stack
A docker config to enable me to quickly start a random php project. 

## Quickstart

### 0. Prerequisites

* [Docker](https://www.docker.com/products/overview)
* [Docker Compose](https://docs.docker.com/compose)

### 1. Download

```
git clone <EMAIL>:thomascrepain/php-development-stack.git
```

### 2. Set-up the environment variables

```
cd php-development-stack
cp .env.example .env
```

### 3. Start Docker

In the project root folder run:
```
docker-compose up
```

The app will be running at http://localhost

## Directory structure

    .
    ├── data        # Persistent data (e.g., database)
    ├── logs        # Logs of the app and all supporting services
    ├── docs        # Documentation files
    ├── public      # Public files (webroot)
    ├── services    # Supporting services (e.g., Docker containers) and their configs
    ├── src         # Source files
    ├── tests       # Automated tests
    ├── .env        # Environment variables 
    ├── LICENSE
    └── README.md

## Supporting services

This repo only uses official Docker images from Docker Hub. Any modifications to these images are available in `services/<image-name>/Dockerfile`.

### Nginx (latest)

The application is available at http://localhost

* [Nginx](https://www.nginx.com)
* [Nginx on Docker Hub](https://hub.docker.com/_/nginx/)

### PHP-FPM (7-fpm-alpine)

Installed:
```
* libmcrypt<commit_msg>Update README: correct tag of Nginx image<commit_after># PHP Development stack
A docker config to enable me to quickly start a random php project. 

## Quickstart

### 0. Prerequisites

* [Docker](https://www.docker.com/products/overview)
* [Docker Compose](https://docs.docker.com/compose)

### 1. Download

```
git clone <EMAIL>:thomascrepain/php-development-stack.git
```

### 2. Set-up the environment variables

```
cd php-development-stack
cp .env.example .env
```

### 3. Start Docker

In the project root folder run:
```
docker-compose up
```

The app will be running at http://localhost

## Directory structure

    .
    ├── data        # Persistent data (e.g., database)
    ├── logs        # Logs of the app and all supporting services
    ├── docs        # Documentation files
    ├── public      # Public files (webroot)
    ├── services    # Supporting services (e.g., Docker containers) and their configs
    ├── src         # Source files
    ├── tests       # Automated tests
    ├── .env        # Environment variables 
    ├── LICENSE
    └── README.md

## Supporting services

This repo only uses official Docker images from Docker Hub. Any modifications to these images are available in `services/<image-name>/Dockerfile`.

### Nginx (stable-alpine)

The application is available at http://localhost

* [Nginx](https://www.nginx.com)
* [Nginx on Docker Hub](https://hub.docker.com/_/nginx/)

### PHP-FPM (7-fpm-alpine)

Installed:
```
* libmcrypt
{'fraction_non_alphanumeric': 0.13305756635642882, 'fraction_numerical': 0.003447087211306446, 'mean_word_length': 3.122159090909091, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 8, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3414224', 'n_tokens_mistral': 941, 'n_tokens_neox': 880, 'n_words': 299}