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

Install MINI in 30 seconds inside Ubuntu 14.04 LTS

This is a guideline on how to install MINI – an extremely simple naked PHP application – more or less

phpstorm-8

Killer-feature in PHPStorm: Search everywhere

A short but massive productivity improvement: The new “search everywhere” feature in PHPStorm 7.1+! Simply double-tap the SHIFT key and

Test GZIP compression of your server easily

If you are running servers (which you hopefully do), then Gzip compression should be a topic, as this simple thing

Google I/O 2014 – HTTPS Everywhere (video)

Excellent, essential and game-changing talk by Ilya Grigorik and Pierre Far (both of Google), explaining why you should always use

(Links) How to fix an extremely slow Symfony inside a Vagrant box

When you work with Vagrant (if not – try it!) on a Windows or Mac machine (which is an excellent

symfony-framework-logo

SensioLabs, creator of Symfony and Silex PHP frameworks, gets $7 million capital

The company behind the two popular PHP frameworks Symfony and Silex just raised 7 million dollars to “expand their open-source

java vs php

Switching from Java to PHP. Seriously. A very interesting and pre-judice-free talk with Ph.D. Aris Zakinthinos

Ph.D. Aris Zakinthinos, CTO of achievers.com, a well-scalability-experienced guy and former IT employee of the military, has just delivered one

css4

Angelina Fabbro talks about “CSS4” in this excellent conference video

A very interesting talk about the future of CSS – let’s name it “CSS4” as we talk about spec level

mod-rewrite-ubuntu-14-04-lts

Which server OS version to choose ? Some EOL lists of Debian, Ubuntu and CentOS

Moving running projects (especially smaller ones that you’ve made for clients years ago) from an outdated and not-supported linux version

php

Must-read PHP blog: PHPweekly.com

Probably one of the best ressources for your weekly doze of news from the PHP scene: phpweekly.com simply publishes a

1/4

Categories

Search

java vs php
Switching from Java to PHP. Seriously. A very interesting and pre-judice-free talk with Ph.D. Aris Zakinthinos
php
12 tools for better PHP quality
github-logo-octocat
GitHub rolls out .PSD diff and viewing
anti block adblock
Show ads to ad-blockering visitors – with PageFair.com
phpstorm-8
Ignore .idea folder from git in PHPStorm
steam sale coupon voucher
-30% to -90% on Steam and Origin
Install MINI in 30 seconds inside Ubuntu 14.04 LTS
Disappointed by Watch Dogs’s graphics ? See how it looks with unlocked, hidden settings. Awesome!
sass laravel
SASSmeister is a real-time JSfiddle for SASS / CSS. Awesome!
goodbye-lamp-going-hhvm-nosql-nginx-php
[RePost] Goodbye LAMP: Going Nginx, NoSQL, HHVM (41min conference talk with Arne Blankerts)
GitHub introduces revert button / rollback for merged pull requests
bitdeli git github stats
Get visitor stats for your GitHub repo with BitDeli
php
How to use the PHP 5.5 password hashing functions
php uk conference
PHP Caching Best Practices by Eli White (video from PHP UK Conference 2014)
laracon-2014-eu-amsterdam
Laracon 2013 – Jordi Boggiano: In Depth Composer (47min video)

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