Code Monkey home page Code Monkey logo

ore-docker-php's Introduction

PHP on Docker

Rather than installing PHP on your machine, this provides a php scripts which executes PHP inside a docker image. You should be able to use it as you are used to.

Installation

This is a homesick castle, if you are familiar with it you just need to clone and ensure $HOME/bin is in your $PATH.

If you have no clue what a castle is, it is also easy:

$ curl -sL https://raw.githubusercontent.com/augustohp/carcassonne-docker-php/master/home/bin/php -o /usr/local/bin/php
$ chmod a+x /usr/local/bin/php

You can change /usr/local/bin/php to anything you want, the /usr/local/bin should be in you $PATH and php is how you are going to call the command.

ore-docker-php's People

Contributors

augustohp avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ore-docker-php's Issues

`php -r` problems with quote escaping

It is not possible to install composer, for example. Any argument passed to php -r is stripped of quotes and interpreted in a wrong manner. Not stripping quotes, makes file expansion suffer and php -l <file> commands suffer.

These commands cannot be exclusive because php -c can be used with php -r.

Better documentation

  • Document environment variables that affect PHP
  • Create an issue template requiring DEBUG=1 trace
  • Document how volumes are automatically mounted for code execution inside the container
  • Document that running the web server automatically map ports

Code cleanup

  • Do we need to map a home (and keep history)?
  • Can the current directory not be mapped to a volume?
  • Fix indentation issues in code

Continuous Integration

Test scenarios

  • Reproduce the test int he first commit message
  • Composer installation
  • phpcs execution
  • php -l execution
  • Test -d configuration options with every command
  • Test different -c php.ini files with every command
  • Test composer installed (it currently cannot as described in #4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.