Giter Site home page Giter Site logo

phpchristmasmiracle's Introduction

PHPChristmasMiracle

This application was created to accompany a presentation at CodeWorks.

The purpose is two-fold:

  1. To highlight how similar frameworks are and how they can be used interchangeably

  2. To show how an app evolves from a flat PHP app into a reponsibly-organized mini framework

Stages

This project is organized into six different stages, each representing one stage of the evolution of the app. You can checkout to different stages to see how things looked:

  • start - A flat, PHP4-style application

      git checkout -b start origin/start
    
  • stage2 - Introduction of autoloader and Request and Response classes

      git checkout -b stage2-http-foundation origin/stage2-http-foundation
    
  • stage3 - Introduction of a router

      git checkout -b stage3-routing origin/stage3-routing
    
  • stage4 - Introduction of a dependency injection container

      git checkout -b stage4-container origin/stage4-container
    
  • stage5 - Introduction of ZF2 logger

      git checkout -b stage5-zf2-logger origin/stage5-zf2-logger
    
  • stage6 - Reorganization of the project's structure

      git checkout -b stage6-dir-structure origin/stage6-dir-structure
    

Usage

To use the app, clone it, check out to whichever branch you want, and do the following:

  • Clone the repository

    git clone git://github.com/weaverryan/PHPChristmasMiracle.git

  • Initialize the database via php data/setupDb.php

  • Pull down the submodules:

    git submodule init git submodule update

If you have any permissions problems, run the following:

chmod 777 data/database.sqlite
chmod 777 data/web.log

Enjoy!

phpchristmasmiracle's People

Contributors

deweller avatar weaverryan avatar

Stargazers

 avatar

Watchers

 avatar  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.