PHP: Unit tests with Travis, PHPUnit and Composer

In a perfect world, every software developer writes tons of unit tests, and uses continuous integration to make sure everything keeps working. Travis, PHPUnit and Composer are there to save you a lot of time! In this blogpost I will explain how to setup Travis and run PHPUnit to run unit tests in a PHP project […]

PHP fragments in Markdown

Ever wanted to use PHP variables and functions in a markdown file and use that file to generate HTML code from the Markdown syntax? Well, it isn’t too hard… Assume you want to parse the following file as Markdown, after executing the PHP fragment: <?php echo $var; ?> ——————- Some text… > Maecenas sed diam […]