Giter VIP home page Giter VIP logo

phpdocker.io's Introduction

PHPDocker.io

Build Status Code Climate

This is the repository for both the website and the generator over at PHPDocker.io, opensourced on an Apache 2.0 license and open for anyone to contribute as they please

Contributing

The usual Github model of forking and pull request. We're following trunk based development, so please create your branches against the master branch. There are no unit tests to keep an eye on, but until I get a functional suite testing ready, code merges can take a while.

All I ask is to thoroughly test, manually, any changes made to the generators. You will need to run the containers with example apps to ensure they're working. Functional tests in the future will do precisely this, with a combination of PHP versions, frameworks, databases, etc. Setting this up is an area you could contribute on.

If you would like to add new containers, please either base them on alpine images, debian:jessie (used by many official images such as MySQL, ElasticSearch...) or Ubuntu 16.04 as these are in use for the generated environments and will optimise deployment and provisioning to users.

Please follow PSR code formatting standards, and Symfony best practices and, in general, do what you see already done in the current code.

Please note everything is really in very early stages; if you see anything at all you can improve upon, please do so.

Running the project

Project is given with a PHPDocker.io generated environment.

I would recommend you install in your host php cli 7.1+, bower and composer and run the usual steps manually, but it's not necessary - the ./prepare-dev.sh script will set up the app (bower install, composer install, etc) through docker and docker-compose commands.

  • Clone
  • Run make init - this will:
    • populate default dev config
    • composer and bower install
    • clean up caches
    • ensure web assets are available
    • load up the database schema (this is just for the CMS side of the website, it has no bearing over the generator)
    • start up the environment
    • create a hosts entry (phpdocker.local)
    • provision a cert using mkcert
  • You can then head off to the /generator route.

This is an initial fail-safe set up and not always you need to run it, after it's done once you'll just need to do a good old docker-compose up -d. More specific information on phpdocker/README.md.

Note: you'll notice a console script at the root of the project. It does some voodoo to run bin/console within the container.

phpdocker.io's People

Contributors

alister avatar andreybolonin avatar h10d avatar jsawo avatar luispabon avatar svanschu avatar tomasnorre avatar wslaghekke avatar zholus avatar zinthose avatar

Watchers

 avatar

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.