Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.
pascal edited this page Dec 14, 2018 · 2 revisions

http://www.php.net

Versions

The following versions are available to choose from, thanks to https://deb.sury.org:

  • 5.6
  • 7.0
  • 7.1
  • 7.2

Libraries

By default, the following libraries/extensions are installed:

  • php-mysql
  • php-gd
  • php-curl
  • php-imap
  • php-json
  • php-opcache
  • php-xml
  • php-mbstring
  • php-memcached
  • php-zip

FPM

The php-fpm daemon is listening on TCP port 9000, and can be started/stopped as any standard service, named after the php version. Eg:

sudo service php7.0-fpm restart

sudo service php5.6-fpm restart

Cli

This is the "primary" container in most cases (ie, a vagrant ssh is equivalent to vagrant ssh cli), and the one you would spend time into, running commands

Composer

https://getcomposer.org

You can (and probably should) specify a GitHub token to use with Composer to avoid hitting GitHub API rate limit. You can do so by setting the composer_github_oauth_token variable. Preferably set this in your custom ~/.CodeEnigma/ce-vm/6.x/ce-vm-custom/config.yml file instead of the project config.yml.

PHP_CodeSniffer

https://getcomposer.org

PHP Mess Detector

https://phpmd.org

Debugging

Both the "fpm" and "cli" container can be independantly configured to use either Xdebug or Blackfire.

Xdebug

https://xdebug.org

Optional: you can set the php_xdebug variable to 'no' to skip installing it. By default it is enabled on the "fpm" container, disabled on the "cli" one.

Blackfire

You will need to also configure the various tokens to use it.

Home

Getting started

The stack

Services

Customize

Topics

Tips and examples

Clone this wiki locally