Skip to content

Instantly share code, notes, and snippets.

Sean Prunka has been a PHP developer since roughly 1998 and a semi-active member of the PHP community since 2010. Sean currently works as a senior developer for PunchOut2Go.
Outside his PHP life, he volunteers with several community theatres (as an actor), a few Pride organizations, and runs spotlight for a weekly drag show.
When he’s not too busy with paid work and volunteer work, Sean helps his wife wrangle their 6 kids between their own theatre rehearsals, band practices, soccer, swim meets, and other such kids’ activities.
@sprunka
sprunka / codeStyleCombat.php
Last active July 28, 2016 17:57
Which is a better" coding practice, in this scenario? DRY or Single Level Indentation? ((Or is there a better way I'm just not seeing?))
<?php
// DRY
if ($condition) {
$output->alterOnce();
if ($secondCondition) {
$output->alterMore();
}
}
return $output
@sprunka
sprunka / echo "Hello Wor ... Ooo Shiny!.md
Last active December 19, 2016 14:56
Regular length session (or short session/lightning talk) abstract
  • Abstract:
    • The Zone: We all strive to achieve it. It's when we are at peak efficiency & productivity. Then: A phone call, a meeting, a tap on the shoulder. BAM! No more zone. So many interruptions to knock you out of the zone, obliterating your productivity. I want to help you stay productive as much as possible. This talk will help you avoid distractions when possible & give you tips to mitigate the effects of the unavoidable. This talk is great for any worker in any position, though the examples given pull from my own experiences as a developer.
  • Extra:
    • This talk has been given at php[tek] in full; at SunshinePHP as an UnCon; and at several User Groups including DCPHP, FredWebTech, Baltimore PHP, Panhandle Web Tech, and even as a Lightning Talk with NomadPHP.
@sprunka
sprunka / Slim down your API.md
Created May 31, 2016 16:53
Regular session abstract

Looking at building a nice RESTful API? In this talk I will guide you through creating a PSR-7 compliant RESTful API using the Slim framework and some handy Middleware utilities. Includes routing, using Object Oriented structure, JSON delivery, error handling, and even a SOAP-like help feature (not a WSDL, but functionally similar).

@sprunka
sprunka / Baby Steps -> Giant Leaps. (Xdebug for beginners).md
Last active November 2, 2016 13:23
Regular Session (possibly short tutorial) talk abstract

var_dump($foo);

print_r($bar);

die($baz);

Are these your current debugging tools? Wouldn't it be nice to see $foo, $bar, and $baz while the code is still being executed? Watch it change, live? And not have it just dumped all over the output of your otherwise beautiful app? We'll install Xdebug, set up your IDE to use it (with examples shown for PhpStorm, Netbeans, and ZendStudio), then we'll actually walk through some badly written code that needs to be debugged.

@sprunka
sprunka / Stuck in Legacy Land? (Modernizing your Legacy Project).md
Last active December 19, 2016 15:02
Abstract for a half to full day hands-on tutorial/training. (probably better suited to an hour session.)

Are you stuck developing a project that is still using PHP 5.4? or worse ... 5.3? Older? Upgrading your codebase from an outdated, obsolete version of PHP sounds scary. You've heard from everyone around you about how wonderful the latest and greatest PHP is, but you just don't know where or how to start. Have no fear! I am here to help you get that code up to date, modernized, and sleek! I'll cover some basics of upgrading your PHP installation as well as updating your code. Let's get those 3rd party libraries out of your codebase and let Composer handle them. And we won't stop there. We will get you ready to use namespacing, unit tests, and more. Bring a project that needs this attention and we'll work through some issues as time permits.