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
November 9, 2013
Chris
Local Development, mini, MVC, PHP
Comments Off on New project: Building a naked PHP skeleton / boilerplate application from scratch

New project: Building a naked PHP skeleton / boilerplate application from scratch

PreviousNext

[This post is from November 2013. In the meantime (I’m writing this in November 2014) the project has changed its name and the idea behind. You can find the new script, called MINI, here on Github or on www.php-mini.com]

I’ve just pushed the first commits of my new project to Github. Beware: What you see is only a few days old. The final release will be in 2014.

https://github.com/panique/php-mvc/

This repo aims to be an extremely reduced, extremely easy to understand and as-easy-as-possible-to-setup naked PHP application. You might ask: “Well, there are hundreds of frameworks, why do we need this ?”. Good question. But the thing is, most frameworks are frameworks, full of features, full of highly complex code, full of files. This project is not a framework, it’s just a barebone application, something like a naked structure to start with.

Basic views, a basic model and basic controllers are already integrated. There’s demo data, pretty URL rewriting, controller/action behaviour, clean PDO handling, a clean config and an extremely simple index.php ! Application logic and public files (css, js, images) are seperated. The idea of going on with Composer is also there, we have a “vendor” folder and an autoloader for Composer dependencies (totally optional, sure).

 

“How do I build an application ?”

One of the biggest question in the PHP world is “How do I build an application ?”. It’s hard to find a good base, a good file structure and useful information on that, but at the same time there are masses of frameworks that might be really good, but hard to understand, hard to use and extremely complex. This project tries to be some kind of naked skeleton bare-bone for quick application building, especially for beginners and not-so-advanced coder (like me) who just want to get things started rather than reading deeply into framework documentations.

 

Goals of this project

  • giving beginners (?) a useful tool to create PHP apps without messing things up
  • promote PSR 1/2 coding guidelines
  • promote usage of PDO
  • promote the usage of Composer, in exactly the way it should be used
  • make people use a more or less clean folder/file structure
  • promote developing with max. error reporting

 

What you can do

Feel free to have a look, watch or fork this, create issue tickets and improve things if you like. And please keep in mind: This is not a framework!

 

 

 

bareboneframeworkMVCnakedPHPphp-mvcskeleton
Share this
css

How to center a div vertically and horizontally (modern methods, without fixed size!)

“How to center a div” (inside another div or inside the body itself) is one of the most discussed questions

anti block adblock

Show ads to ad-blockering visitors – with PageFair.com

Interesting news on the dramatically decreasing web ad market: There’s a new service called PageFair that does basically exactly what

shadow dom

A quick video introduction into Shadow-DOM, the game-changing DOM-subtree-technology

Awesome talk by Eric Bidelman (of the Chrome team): Shadow-DOM was often heard in 2013 and seem to exist for

Interesting stats on SONY’s hacked passwords

In 2011 SONY’s Playstation network got hacked, 77 million accounts have been compromised, and more than 1.000.000 passwords – saved

php

[Link] Excellent PHP best practices, 2014 style

Excellent post on This interests me: A collection of useful best practices in modern PHP development, like Redirecting the user

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

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

battlefield-3-free

Electronic Arts / Origin offers Battlefield 3 for free (limited promo action) !

A little bit off-topic, but definitly cool: EA offers the award-winning Battlefield 3 for free these days, but only for

New project: Building a naked PHP skeleton / boilerplate application from scratch

[This post is from November 2013. In the meantime (I’m writing this in November 2014) the project has changed its

How to get a single table out of a massive MySQL .sql database backup file (mysql dump splitter)

Imagine the following situation: Somebody backs up an entire MySQL database – a very large one – with common tools.

1/4

Categories

Search

php
How to setup / install PHP 5.6 on Ubuntu 14.04 LTS
mod-rewrite-ubuntu-14-04-lts
How to enable mod_rewrite in Ubuntu 14.04 LTS
Microsoft enters post-password era with Hello (promo video)
What’s new in PHPStorm 10 (Official promo video)
php
Somebody is writing a compiler for PHP, compiles down to machine code, outperforms HHVM
A quick history of Comic Sans, the most wrongly used font ever
MINI, an extremely simple barebone PHP application
modern-php
Creator of Slim framework and “PHP – The right way” writes book: “Modern PHP”, available 2015
times-new-roman
The Times talks about Times New Roman (3min video)
How to hack time (KUNG FURY promo campaign)
[Link] Improving Smashing Magazine’s Performance: A Case Study
php
Redesigning the PHP logo – who wants ?
Install MINI in 30 seconds inside Ubuntu 14.04 LTS
php
“Belt” adds very clever everyday functions to PHP, comes with JavaScript naming styles and eventually solves the needle/haystack problem
hack-php
Facebook releases HipHop (HHVM) 3.0, adds mysqli and support for Hack language

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