gezpage / base-web-app

Framework free PHP web app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Base Web App - Framework free PHP web app

This is intended to be a ready to use web app base, making use of third party composer packages and minimal code to wire them together.

  • Bring up Vagrant box with vagrant up (Currently uses Ubuntu 12.04 LTS with PHP 5.6 and Nginx)
  • Install Composer packages with composer install
  • Create controllers in /src/Gez/Controller
  • Configure routing in /src/Gez/Routing.php (league/route)
  • Create views in /views (league/plates)
  • Create Repository classes in /src/Gez/Repository (Doctrine DBAL)
  • Configure container services in /src/Gez/Container/Services.php (league/container with auto-wiring enabled)
  • Make use of PSR-7 Messages (Zend Diactoros)
  • Add PSR-7 compliant middlewares in /src/Gez/Core/Http/Middleware (Relay)
  • Log file in /app/log/app.log (Monolog)
  • Add Bower packages in /web (Bootstrap & jQuery preinstalled)
  • Detailed error pages (Whoops)
  • Debug with calls to d() (Kint)
  • Analyse app in development with DebugBar (DebugBar)

Todo

  • Create Ubuntu 16.04 LTS / PHP 7.x alternate Vagrant box
  • Maybe preinstall asset pipeline; Webpack or Gulp
  • Maybe integrate an ORM (Doctrine?)
  • Maybe integrate a Mongo ODM layer

About

Framework free PHP web app


Languages

Language:PHP 100.0%