Logo
  • PHP
    • HipHop / HHVM
    • Modern PHP
    • PHPStorm
    • LAMP
    • Laravel
    • Composer
    • PDO
  • JavaScript
    • node.js
    • AngularJS
  • CSS
    • SASS
    • “CSS4” (CSS level 4)
  • HTML
  • Git
  • LAMP
  • Vagrant
  • UI / UX
  • Architecture of …
  • Off-Topic
With ♥ from Berlin
December 21, 2013
Chris
Git, mini, MVC, PHP
Comments Off on Preview-release of (my) “php-mvc” project (a simple php mvc barebone)

Preview-release of (my) “php-mvc” project (a simple php mvc barebone)

PreviousNext
php mvc

php-mvc

Voila! The very first pre-final release of the “php-mvc” repository is online: https://github.com/panique/php-mvc and http://www.php-mvc.net. It’s a very simple but very useful barebone application written in PHP. This little thing is not another framework, it is simply a totally reduced file-and-folder structure that should 1.) help developers to create PHP applications without a framework the right way and 2.) show younger devs how “good” code could look like and how MVC applications are structured. I know, some people will scream now “but why you don’t learn Zend2 etc. ?”, but that’s exactly the point: Many younger developers simply have problems to learn Zend2 etc.! Most mainstream frameworks, even the micro ones, are really hard to understand, even with some years of PHP experience.

It’s a common problem that masses of non-professional developers try to build PHP applications in their own way, without having ever heard of MVC or how to organize such a project. This usually results in a quite wild and weird file structure, with more than 15 php files for just handling one little form, and a horrible mix of database requests, HTML and CSS and php-generated JavaScript. I think we all have gone through this. The php-mvc project/repository (I’m still in the name-finding process) tries to solve that problem by providing an extremely easy-to-learn skeleton application for PHP projects, while it DOES NOT try to be a real framework. Everything is as non-automatic as possible. Everything is as clean as possible, as reduced as possible.

The project aims at people with shorter PHP experience, but tries to fit the most modern PHP standards at the same time. We are talking about PSR-1/2, autoloaders, Composer, PDO, MVC for sure, potential Unit Testing (just a plan!), Post/Redirect/Get, speaking variables/methods, proper comments etc.

To give a short introduction how this project looks and behaves, check out these 5 tutorials I’ve made (they are currently images, as this is the best possibility to bring stuff like that into a GitHub README file): And, you’ll find a file/folder structure explanaition on the last one.

php mvc tutorial - part 1

php mvc barebone tutorial part 2

php mvc barebone tutorial part 2

php mvc barebone tutorial part 4

php mvc barebone tutorial part 5

Looks quite okay I think. It would be awesome if everybody who’s interested could try out this thing and give feedback, commit improvements or just send hatemails because this project is totally useless. The repo URL is https://github.com/panique/php-mvc, feel to do whatever you want with this skeleton app.

 

MVCPHPphp-mvc
Share this
goodbye-lamp-going-hhvm-nosql-nginx-php

[RePost] Goodbye LAMP: Going Nginx, NoSQL, HHVM (41min conference talk with Arne Blankerts)

Another excellent find by Germany’s PHP Magazin in the article “Nginx, NoSQL, HHVM: Goodbye LAMP Stack?“: 41 minutes super-interesting (english)

php uk conference

Profiling PHP Applications by Bastian Hofmann (video from PHP UK Conference 2014)

The title says it all: Profiling PHP applications.  

composer

The difference between “composer install” and “composer update” – nailed on the head

What a beautiful, direct and clean explaination of the often-confusing difference between composer install and composer update: Beau Simensen (Twitter,

How to show the available version of a package (before doing apt-get install)

To show the version of the package that will be installed with apt-get install, do apt-cache policy packagename. To show

digitalocean coupon

DigitalOcean VPS coupon codes for december 2013 and early 2014

Some (working!) coupon codes for DigitalOcean, the low-cost VPS server/hosting provider of the year. They are for NEW customers, but

hearthbleed-ssl-bug

A quick guideline on how to fix the Hearthbleed bug (and update OpenSSL) on Ubuntu

If you still haven’t fixed your servers after mainstream discovery of the legendary Hearthbleed bug, then do it now –

microsoft-windows-azure-cloud-hosting

Microsoft’s Azure platform gives away high money prizes for “testing out” their cloud services

Disclaimer: DEV METAL does not get any money etc. for saying this, there is no affiliate link, no deal with

O’Reilly’s Learning JavaScript Design Patterns by Addy Osmani for free

Addy Osmani has published his excellent book Learning JavaScript Design Patterns for free! You can read the entire book including

forbes 30 under 30

Need motivation ? Check out these 2 awesome “FORBES 30 under 30” lists (web, UI, games)

The FORBES magazine has just published the new “30 under 30” lists, and they are really really interesting! Lots of

phpstorm-8

A PHPStorm shortcuts cheat sheet (for Windows, Mac OS and Linux)

Shortcuts that will make you life so much easier! Please note: Frontend Devs might be irritated by the weird CTRL-Y-shortcut,

1/4

Categories

Search

vagrant
How to setup a (or multiple) server/LAMP-stack inside a virtual machine for local development with Vagrant and PuPHPet
css4
Angelina Fabbro talks about “CSS4” in this excellent conference video
Hacking ATMs – A conference talk about the current security state of Windows XP driven cash machines
photoshop-cc-deal
Adobe offers Photoshop for $9.99 per month (limited deal)
php
How the PHP session garbage collector really works
phpstorm 7.0 php
PHPStorm 7 has been released!
[Link] Interesting: Designing a Nuclear Waste Warning Symbol That Will Still Make Sense in 10,000 Years
php uk conference
Slides & talks from PHP UK Conference 2014
ubuntu-14-04-lts lamp
How to install/setup a basic LAMP stack (Linux, Apache, MySQL, PHP) on Ubuntu 14.04 LTS
Meet the developers behind Ableton (14min video)
cheap cloud server php
DigitalOcean rolls out interesting feature: Transfering server snapshots directly to the client’s account
hack-php
Facebook releases HipHop (HHVM) 3.0, adds mysqli and support for Hack language
php
appserver.io – A New Way of Magento Enterprise Infrastructure (26min video talk)
php
How to install sqlite driver for PHP in Ubuntu & Debian
phpstorm 7.0 php
How to install GitHub’s, NetBeans’s and Sublime2’s syntax highlighting code colours theme in PHPStorm 6/7

Tags

apache bash centos composer conference coupon CSS debian fonts framework git GitHub hack HHVM HipHop HTML HTML5 IDE JavaScript JS LAMP laravel linux mod_rewrite MVC MySQL Nginx optimization PHP PHP 5.5 PHP 5.6 phpmyadmin PHPStorm security server SSD Ubuntu UI UX vagrant video virtual machine voucher VPS wordpress
Side-Project: Wordle-Solver:
www.wordle-helper.info

Pages

  • Privacy Policy