<commit_before>Installation
============

Get it!
-------

`composer create-project --stability=dev phundament/app:4.0.x-dev app-v4`

Setup your environment
----------------------

### Database setup

Create a new database to store application information.

> Note! Currently a MySQL is required for the user module.

### Environment setup with ENV variables

Our recommended setup is based on `vlucas/dotenv`, which reads ENV variables from the system or a local file. You can find background information about this topic in the [The Twelve Factor App](http://12factor.net/config) documentation.

Run the application initialization and choose `[2] Dotenv`:

    ./init

After initializing the application you have to adjust the `.env` file in your project root.

### Application setup

```
./yii app/setup
```

Alternatives
------------

You can also use develop your local application with [fig and docker](https://github.com/phundament/app/blob/master/docs/51-fig.md) or [vagrant](51-vagrant.md). 

For deployments use can choose between [vagrant on a cloud- or remote-server](https://github.com/phundament/app/blob/master/docs/51-vagrant-cloud.md) or various [Platform as a Service](https://github.com/phundament/app/blob/master/docs/52-paas.md) providers.
<commit_msg>Update 20-installation.md<commit_after>Installation
============

Get it!
-------

`composer create-project --stability=dev phundament/app:4.0.x-dev app-v4`

Setup your environment
----------------------

### Database setup

Create a new database to store application information.

> Note! Currently a MySQL is required for the user module.

### Environment setup with ENV variables

Our recommended setup is based on `vlucas/dotenv`, which reads ENV variables from the system or a local file. You can find background information about this topic in the [The Twelve Factor App](http://12factor.net/config) documentation.

Run the application initialization and choose `[2] Dotenv`:

    ./init

After initializing the application you have to adjust the `.env` file in your project root.

### Application setup

```
./yii app/setup
```

Alternatives
------------

You can also develop your local application with [fig and docker](https://github.com/phundament/app/blob/master/docs/51-fig.md) or [vagrant](51-vagrant.md). 

For deployments use can choose between [vagrant on a cloud- or remote-server](https://github.com/phundament/app/blob/master/docs/51-vagrant-cloud.md) or various [Platform as a Service](https://github.com/phundament/app/blob/master/docs/52-paas.md) providers.

{'fraction_non_alphanumeric': 0.13860610806577917, 'fraction_numerical': 0.011746280344557557, 'mean_word_length': 3.7579143389199254, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2063151', 'n_tokens_mistral': 754, 'n_tokens_neox': 719, 'n_words': 262}