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

Adobe releases Firebug-like developer tools to edit and extract PSDs

A big step in frontend-development: According to this presentation on Adobe Max 2014 Adobe has just released a very interesting

This is an experimental advertisement

The blogosphere is full of annoying flash banners, GoogleAds and questionable product placements. So… let’s try out something new. :)

php

Why Modern PHP is Awesome And How You Can Use It Today (Slides by Matt Stauffer)

hack-php

Wow! Facebook devs have rewritten and fixed PHP, releasing it as new language called “Hack” today

Exciting stuff is happening: Some years ago Facebook has released an early preview of HipHop, a virtual machine that precompiles

Perfect HTML email templates for perfect HTML emails (outlook!) with INK

The people behind FOUNDATION, the excellent responsive frontend framework, have just released a set of highly professional, perfectly compatible HTML

php

How to use the PHP 5.5 password hashing functions

PHP 5.5 introduced some very interesting password hashing functions that will make your life much much easier, the web much

atomic-design

An introduction into Atomic Design, a super-clean way to style web applications

A super-interesting talk of Brad Frost at beyond tellerrand 2013, explaining the basics of Atomic Design: What is Atomic Design

redaktionelle-hochlastseiten

Hochlastseiten mit PHP, MySQL und Apache am Beispiel stern.de (deutscher Artikel)

Eine grandiose Powerpoint-Präsentation die sich jeder, der mit PHP, MySQL und Apache auf Linux arbeitet, mal anschauen sollte: Nils Langner,

Going node.js at Netflix (Slides by Micah R of Netflix)

It’s awesome how node.js takes over the absolute AAA-level corporate world. Note that node.js is still an early alpha product

Material Design – How Google designed Android L (7min video)

A very interesting insight into Android L’s (= Android 5.0) new design and the ideas behind. Android was always #3

1/4

Categories

Search

This picture shows the icon of blindness
How blind people use websites (video with Sina Bahram, blind accessibility researcher)
You made a mess with Git ? Here’s a flowchart guideline on how to fix
php
How the PHP session garbage collector really works
github-logo-octocat
GitHub buys Easel.io, a code-free full website creator worth a look
php uk conference
PHP Opcache Explained by Julien Pauli (video from PHP UK Conference 2014)
php
A super-simple introduction into PHP namespaces (7min video)
increase-your-pagespeed-score
Increase your PageSpeed score (10min video with Matt Gaunt)
(Links) How to fix an extremely slow Symfony inside a Vagrant box
Hacked french TV channel exposed passwords in TV interview (video, screenshots, links)
dev coding cards deck
Nice gifts for devs: Nerdy playing-cards decks
phpstorm 7.0 php
A perfect video tutorial to get started with xdebug in PHPStorm
shadow dom
Crossbrowser-safe HTML5 video (IE6+) with a few lines of code and just one .mp4 video file
october cms
October CMS, built on top of Laravel, is beautiful, clever and on the way to be the new #1 CMS
[Link] Improving Smashing Magazine’s Performance: A Case Study
-45% (or even 50%) off on DesignWall today

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