Skip to content

Repository files navigation

PHP 5.6 Phalcon v2 Development Environment

This is a preconfigured development environment for working on legacy Phalcon 2.0.13 projects running PHP 5.6.40.

It features:

  • phalcon v2.0.13
  • phalcon-devtools v2.0.13
  • PHP v5.6.40
  • PHP-FPM
  • Xdebug v2.5.5

Purpose

The purpose of this project is to provide developers a quick and easy to setup development environment, to allow them to debug and upgrade legacy Phalcon v2 applications.

Prerequisites

You will need a container runtime to use the image. The easiest way to get start is simply Docker.

Usage

Please see the docker-composer.yml file in the project root for a reference usage.

This image creates a PHP-FPM service which requires a webserver to proxy requests over fcgi.

Feel free to use this project as a template environment.

Enable HTTPS support

Warning: this is specific to this project's file structure, please ensure your make the appropriate adjustments to suite your project.

If you would like to enable HTTPS support to this environment, you can do so with the following steps (replacing <project root> with the appropriate directory on your system):

  1. Add certificate and key:
    • Create and add your public certificate to <project root>/httpd/server.crt.
    • Create and add your private key to <project root>/httpd/server.key.
  2. Uncomment lines 36 & 37 in <project root>/docker-compose.yml, under the web service. The lines should look something like the following:
    • Line 36: # - ./httpd/server.crt:/usr/local/apache2/conf/server.crt
    • Line 37: # - ./httpd/server.key:/usr/local/apache2/conf/server.key
  3. Uncomment everything after line 141 in <project root>/httpd/httpd.conf.

Contributing

Please feel free to open an issue if you are having trouble with anything or just have suggestions. Pull request are always welcome too.

About

A simple development environment for Phalcon v2.0.13.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages