Archive | PHP

OmniPay/Authorize.Net DPM Sequence Chart

This entry is part 2 of 2 in the series Using OmniPay Authorize.Net DPM Gateway

In part 1 I introduced some of the Authorize.Net gateways, in particular the Direct Post Method (DPM) gateway. I also introduced the OmniPay package that handles the DPM gateway. The code samples that follow will focus on DPM. To provide some context, I’ll bring in a sequence chart for this gateway used through OmniPay. What […]

Continue Reading 7

Validating Flight Codes

Working on a portal that allows end users to enter their flight details for Operation Wallacea (OPWALL) trips, we were finding many details not being entered correctly. Since the portal was to take some of the load off the operations staff, having to double-check everything was not really saving any tine. The flight codes (or […]

Continue Reading 2

A Primer on PHP Exceptions

The original article is here: http://nitschinger.at/A-primer-on-PHP-exceptions The article explains the structure of the exceptions very well, with this simple list summing up what many pages of PHP manual pages does not make very clear: [text] – Exception – ErrorException – LogicException – BadFunctionCallException – BadMethodCallException – DomainException – InvalidArgumentException – LengthException – OutOfRangeException – RuntimeException […]

Continue Reading 0

Google Webfonts for Woo Framework

Bradley Charbonneau has put together a video that demonstrates this plugin in action. Thanks Bradley 🙂 WooThemes are a big WordPress theme provider. They have taken the lean approach of releasing themes that fit the needs of a lot of people, but may be rough around the edges, but work enough. Constant updates then fill […]

Continue Reading 0

PHP Design Patterns

Some great examples here: github.com/domnikl/DesignPatternsPHP Sometimes it is difficult to get a handle on the implementation of a design pattern, no matter how many times you read the theory. This repository is a collection of some practical examples of what they look like. Being a github repository, if you want to add to the list, […]

Continue Reading 1

PHP Backtrace on Errors and Warnings

It is sometimes useful to see back-traces of PHP execution whenever errors or warnings appear on a page. Often you would insert var_dump() statements to see what is happening and to narrow down the source of a problem (I know, not the ideal way to fix bugs, but it is a technique that is always […]

Continue Reading 0