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
css3-chrome-font

[Link] Retinafy your Site / Device by Nijiko Yonskai

A simple one-page Gist with all the information you need to make your sites retina-ready: Nijiko Yonskai – Retinafy your

Symfony devs: Creator of Symfony framework is hiring (Cologne, Germany)!

Probably one of the most interesting companies for a PHP developer is currently hiring Juniors and Seniors in Cologne, Germany.

The architecture of StackOverflow

One of the most interesting talks these weeks, and a rare insight into one of the most active pages on

Install Laravel 4 on Ubuntu 12.04 LTS (a how-to tutorial)

Laravel 4 is the big thing. Every blog talks about it, nearly every developer-twitter-account mentions it. Hmm, looks like everybody

vagrant

A preinstalled Vagrant box with PHP HipHop / HHVM and Ubuntu 13.10 (Saucy Salamander)

Here’s an excellent downloadable Vagrant box that’s brings you a preinstalled HHVM / HipHop for PHP within a Ubuntu 13.10

O’Reilly sells EVERY ebook for -50% right now!

A good chance to grab some IT books: O’Reilly sells every single book in their portfolio with a -50% discount

mod-rewrite-ubuntu-14-04-lts

EOL lists of Ubuntu, Debian and CentOS for your server plannings

Chosing the right server operating system will probably save your life and avoid a lot of stress with your clients.

Support FLARUM, the future of PHP forum scripts (with some dollars on Kickstarter)

PHP forum scripts are horrible, let’s face it. Nearly everything that’s available is hard to install, hard to handle, hard

php uk conference

PHP Caching Best Practices by Eli White (video from PHP UK Conference 2014)

The title says it all: PHP Caching best practices.

shadow dom

Crossbrowser-safe HTML5 video (IE6+) with a few lines of code and just one .mp4 video file

No time to read the full article ? Get the code directly here on GitHub: panique/html5-video. Publishing a video on

1/4

Categories

Search

vagrant
How to copy Vagrant boxes (or duplicate them)
ubuntu-14.04-lts
First view: Ubuntu 14.04 LTS brings PHP 5.5 and Apache 2.4
Test GZIP compression of your server easily
php
How to install sqlite driver for PHP in Ubuntu & Debian
How to hack time (KUNG FURY promo campaign)
php
Postmodern PHP: appserver.io, a multithreaded application server for PHP, written in PHP
Adobe releases Firebug-like developer tools to edit and extract PSDs
How Snapchat wants to earn money (by establishing vertical videos)
js javascript
Push database changes to all clients in real-time (!) with AngularJS and Firebase
[Link] Interesting: Designing a Nuclear Waste Warning Symbol That Will Still Make Sense in 10,000 Years
atomic-design
An introduction into Atomic Design, a super-clean way to style web applications
Redesigning Windows 8 – fantastic and clever drafts by Jay Machalani
the-php-login-project
How to install php-login-minimal on Ubuntu 12.04 LTS
Beautiful, minimal WordPress theme ZUKI by Elmastudio (with 30% discount)
New project: Building a naked PHP skeleton / boilerplate application from scratch

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