Cigtrack Day #1: Setting up Camp

Starting a new software project in somewhat professional ways is not hard nowadays. Before you write all your cool code, you should probably think of some structure or software architecture you want to use. Very popular and in the past very useful to me has been: MVC.

Actually I have been cheating a little, because I’ve been cooking my idea in my head for a while already. If I had not done that, I would need to do some research towards target group, monetization strategies and also if any laws would require a certain security standard or just plainly prevent me from doing what I do. Continue reading “Cigtrack Day #1: Setting up Camp”

Phalcon, a high performance PHP MVC framework

Phalcon comes as a C binary, which you can set up as a PHP module in your php.ini. It makes the framework functionality available as PHP classes, so you won’t actually have to worry about the C part after the initial installation.

phalcon-php-lightweight-high-performance-framework

I’ve been writing PHP as one the first languages I learned, because I wanted to build web things, after learning the basics of programming in Python. Now, lately I’ve been writing a lot of JavaScript, both for Frontend and Backend, so obviously with node.js.

It’s great to see this approach coming to the PHP world and it seems like a possibility to make PHP one of the first choices for building APIs. The wide spread of the language could lead to adoption, if the some hosting companies jump this wagon.

The downside compared to other frameworks is of course, that you need to have control over your hosting environment to install the binary component.

The Volt Templating Engine

The Volt Templating Engine seems very familiar and includes functionality like blocks, variables in double curly brackets, conditionals and filters for string transformation.

{% if show_navigation %}
  <ul id="navigation">
  {% for item in menu %}
    <li><a href="{{ item.href }}">{{ item.caption }}</a></li>
  {% endfor %}
  </ul>
{% endif %}

Summary

Phalcon seems like a promising candidate for running PHP at scale. Although PHP is not my first choice any more, I do like to see it evolve and blossom in different frameworks and approaches.

(discovered via Thomas)

Best JavaScript MVC Frameworks 2013-2014

JavaScript MVC Frameworks are a big topic nowadays that we use JS to bind data, send it back and forth between server and client and actually implement lots of logic, so we want to structure our code after the MVC or similar patterns, decoupling the logic or data handling from the views. In this article I want to share what frameworks I’ve tried out and which ones I find interesting. Continue reading “Best JavaScript MVC Frameworks 2013-2014”

PHP MVC: The Laravel Framework

The Laravel project has made a pretty smart move, that now is also in their quick start guide. They enable you to install it directly through composer! I’ve written about composer once when I ran into a little quirky bug on MacOS.

Using composer, which is a general dependency manager for PHP seems like a big step towards more interchangeable code between different PHP frameworks. I’ve briefly looked into Sparks some time ago, but it’s pretty specifically aimed at the CodeIgniter framework. Continue reading “PHP MVC: The Laravel Framework”

Best PHP MVC frameworks of 2013

Frameworks are making your life easier, since they take care of common tasks you without them would have to repeat for every project or even within projects.

I have assembled a small list of promising candidates for you, they may not be the most commonly used, but they teach best practices, principles like MVC and have communities and thereby helping hands on the internet.

This post was originally written for the semester blog of my class, therefore it also focusses on the types of database queries supported by the frameworks, we have a dedicated module in SQL and databases, which is why it is pretty relevant to the students of my semester. Continue reading “Best PHP MVC frameworks of 2013”