Using Ionic to generate icons and splash screens for Cordova projects

Published: Wednesday, April 22nd, 2015 by Tyler Crammond

It can be a little tedious to produce icons and splash screen assets for your app across multiple platforms and screen sizes. Fortunately, the Ionic Framework‘s CLI provides a handy little command to to generate a lot of these for you. Even if you don’t use the Ionic framework in your project, you should still be able […]

Setting up Grunt to compile SASS

Published: Wednesday, February 25th, 2015 by Tyler Crammond

We use Grunt for all sorts of things at PodPea; from building projects on multiple platforms to bulk image compression. If you’re not familiar with Grunt, it’s an automated task runner with an extensive ecosystem; I recommend checking out their site here. In this post I’m going to quickly run over how to set up […]

An Introduction to Yeoman

Published: Friday, January 30th, 2015 by Tyler Crammond

Yeoman is a command-line tool for setting up new projects and speeding up your development workflow. We’ve been using it for a few months now at PodPea and it’s proved invaluable. If you’ve never heard of or at least not used Yeoman before, I hope this very basic example will help demonstrate the kind of thing […]

How to test MongoDB Repositories using PHPUnit & Mongounit

Published: Friday, January 16th, 2015 by Chris Taylor

A repository is a way of making a standard interface into your database from your application. In MVC terms, it’s the Model. They should all extend a base repository which defines how they should interact with the DB. In this example it will be MongoDB. They should also all implement an interface which declares functions […]

How to generate PHP documentation using Sami

Published: Tuesday, January 6th, 2015 by Chris Taylor

Right, so you’ve got a lovely PHP class, lots of fancy functions and you want to release it so that other people can use it. For this you’ve got to write some documentation. As boring as it is, it is incredibly useful if you want anybody to be able to use your code. It also […]

How to test internal functions of a class

Published: Monday, January 5th, 2015 by Chris Taylor

Using PHPUnit and partial mocks Let’s say you have a super complicated class that has lots of functions that are used to manipulate data or call a third party class or just does something that is repeated thoughout your class so it’s useful to have it as a seperate function. If you’re using a tool […]