<commit_before># Advanced PHP Buildpack

This buildpack is a fork from [CHH/heroku-buildpack-php](https://github.com/CHH/heroku-buildpack-php) which has been improved for the PaaS
https://scalingo.com (ex Appsdeck) to have a better PHP support.

## Characteristics

* __Nginx__ 1.5 and 1.6 - __PHP__ 5.3, 5.4, 5.5 and 5.6 - __PHP FPM__
* Lightweight stack compared to Apache-ModPHP
* Composer support
* Various frameworks support out of the box (no configuration)
* Dynamic installing of [supported extensions](support/ext) listed as `ext-` requirments in `composer.json`.

## How to use it

This buildpack is used automatically by Appsdeck. So you juste need to create
a PHP application and to deploy it.

```
scalingo create my-php-app
```

Install CLI tool → http://cli.scalingo.com

### Node.JS for assets building

If you have `package.json` file in your repository, you have to enforce the buildpack choice

```
scalingo env-set BUILDPACK_NAME=php
```

## Available versions

[Available PHP Versions](https://lb1047.pcs.ovh.net/v1/AUTH_c91a9132e4f149809d23b20b6de57161/appdeck-buildpack-php/manifest.php)
[Available NGINX Versions](https://lb1047.pcs.ovh.net/v1/AUTH_c91a9132e4f149809d23b20b6de57161/appdeck-buildpack-php/manifest.nginx)

## Detection

This buildpack detects apps when the app has a `composer.json` in the app's root.

If an `index.php` is detected in the app's root, then it switches to "classic mode",
which means that every ".php" file is served with PHP, and the document root is set
to the app root.

When a `composer.json` is detected, then the buildpack does `composer
install --no-dev`.

This buildpack also detects when the app has a node `package.json` in the
app's root. And will install node dependencies like less for example.

## Frameworks

### CakePHP
<commit_msg>No more appsdeck mention, we are Scalingo now<commit_after># Advanced PHP Buildpack

This buildpack is a fork from
[CHH/heroku-buildpack-php](https://github.com/CHH/heroku-buildpack-php) which
has been improved for the PaaS https://scalingo.com to have a better PHP
support.

## Characteristics

* __Nginx__ 1.5 and 1.6 - __PHP__ 5.3, 5.4, 5.5 and 5.6 - __PHP FPM__
* Lightweight stack compared to Apache-ModPHP
* Composer support
* Various frameworks support out of the box (no configuration)
* Dynamic installing of [supported extensions](support/ext) listed as `ext-` requirments in `composer.json`.

## How to use it

This buildpack is used automatically by Scalingo. So you juste need to create a
PHP application and to deploy it.

```
scalingo create my-php-app
```

Install CLI tool → http://cli.scalingo.com

### Node.JS for assets building

If you have `package.json` file in your repository, you have to enforce the
buildpack choice

```
scalingo env-set BUILDPACK_NAME=php
```

## Available versions

[Available PHP Versions](https://lb1047.pcs.ovh.net/v1/AUTH_c91a9132e4f149809d23b20b6de57161/appdeck-buildpack-php/manifest.php)
[Available NGINX Versions](https://lb1047.pcs.ovh.net/v1/AUTH_c91a9132e4f149809d23b20b6de57161/appdeck-buildpack-php/manifest.nginx)

## Detection

This buildpack detects apps when the app has a `composer.json` in the app's root.

If an `index.php` is detected in the app's root, then it switches to "classic mode",
which means that every ".php" file is served with PHP, and the document root is set
to the app root.

When a `composer.json` is detected, then the buildpack does `composer
install --no-dev`.

This buildpack also detects when the app has a node `package.json` in the
app's root. And will install node dependencies like less for example.

## Frameworks

### CakePHP

{'fraction_non_alphanumeric': 0.09299116997792495, 'fraction_numerical': 0.037527593818984545, 'mean_word_length': 4.4593373493975905, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, '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': '4948996', 'n_tokens_mistral': 1275, 'n_tokens_neox': 1154, 'n_words': 439}