PHP
Mock Objects in PHP – Testing
 Introduction In unit tests, mock objects simulate the behaviour of real objects. They are commonly utilised to offer test isolation, to stand in for objects which do not yet exist, or to allow for the exploratory design of class APIs without requiring actual implementation up front. A good example, where mock objects would be required, is [...]
DOM Traversal in PHP – As simple as JQuery
JQuery is a very popular javascript library that has eased the traversal of HTML DOM elements. The Javascript community has benefitted immensely from that. PHP also has a very good library that can be used to traverse the DOM, it’s very efficient and simple to use. Today, I’ll show you how to do DOM Traversal in PHP using Symfony’s [...]
PHP ISN'T SHITTY; YOUR MINDSET IS!
  Before I started working with the  PHP programming language, I had little to no respect for it. This was basically due to a mindset I was made to adopt by my immediate environment and within the work environment. PHP has always been regarded to as the shittiest programming language out there but I put this question to you: WHAT MAKES [...]
Robo – The Awesome Task Runner For PHP
Web Development is Hard. There are so many things you have to take into consideration during the course of building web applications, especially when you want to follow best practices and deliver the best product. One of those several actions is automating tasks. We have task runners like Grunt and Gulp, these two do an amazing job of automating [...]
Kahlan – Implementing the Goodness of RSpec/Jasmine in PHP Testing
In PHP, there are several testing frameworks you can use to test your applications. Popular ones including PHPUnit, Codeception, Behat and PHPSpec. PHPUnit helps you to unit test your code, Behat, PHPSpec gives you the ability to do a form of behavioural testing. Today, I introduce to you Kahlan, A very awesome full-featured Unit and BDD test [...]
PhalconPHP: An Introduction to the Fastest PHP Framework
The PHP community has grown in leaps and bounds. Several kingdoms( PHP Frameworks) have risen and fallen. My favorite: Laravel is the most popular and loved PHP framework and that’s what I use for all my production apps. Introduction Phalcon is an open source web framework delivered as a C extension for the PHP language providing high [...]
PHP BOOTCAMP: Develop Your Own CLI Scripts
Developers run CLI Scripts every now and then and I bet you have used them severally. I mean Command line/ Shell Scripts. The Question is: Have you been able to create yours? Have you wondered how these things are created? As a Laravel Developer, have you wondered how php artisan, php artisan <a-type-of-argument> works? It’s actually [...]
PHP BOOTCAMP: Magic Constants
There are a lot of methods, classes and constants that PHP offers to developers for use. We’ll talk about the MAGIC CONSTANTS today. Note: These constants didn’t just appear in the standard PHP library, they were not dropped from heaven and a PHP developer doubling as a magician also didn’t write them. This was actually intended [...]
How to build a Project Management App in Laravel 5 – Part 7
When you click on a project to see the details, it shows the tasks, files and comments form. Let’s see how we can add tasks to each Project. Create a new folder named tasks in the views directory and create a form.blade.php inside the tasks directory. Move the part of the show.blade.php that has to do with the task form into form.blade.php [...]
How to build a Project Management App in Laravel 5 – Part 6
Let’s go to show.blade.php [crayon-5955ae1b61e1f215439653/] I have added the <a href="/projects/{{ $project->id }}/edit> link. So if you click on it right now, it shows an empty page. Let’s add the view for that. Go to ProjectController.php Add this to the edit function [crayon-5955ae1b61e31332334849/] So it fetches the [...]