Timothy Boronczyk is a native of Syracuse, New York, where he lives with no wife and no cats. He has a degree in Software Application Programming, is a Zend Certified Engineer, and a Certified Scrum Master. By day, Timothy works as a developer at ShoreGroup, Inc. By night, he freelances as a writer and editor. Timothy enjoys spending what little spare time he has left visiting friends, dabbling with Esperanto, and sleeping with his feet off the end of his bed.
Git Hooks for Fun and Profit
When certain commands are run, Git searches the .git/hooks directory for suitable hook scripts which are then executed if found. You’ll find a small set of example scripts there, but you can also write your own. This article suggests a handful of custom hook actions which can streamline your development and help improve your efficiency.
Setting Up PHP behind Nginx with FastCGI
mod_php was the most popular Apache module until 2009. As the Internet grew and the technologies that power it evolved, other ways of serving PHP sites and applications became available. nginx, a server written to solve the C10k problem, is eating into Apache’s marketshare, and running PHP behind nginx with FastCGI is becoming an increasingly commonplace alternative.
A PHP from the Future
Increasing attention is paid to online activities, scalability and connectivity are more important than ever before, and the very nature of privacy is being re-examined. But quietly, in the shadow of all of this, sits perhaps a more interesting issue: How will PHP change and grow to enable us to build our future, whatever it may hold?
Saving PHP Sessions in Redis
PHP’s default approach to persisting session data is sufficient for most applications, but sometimes your project demands something different. Luckily, session handling routines can be overridden either by a series of functions or a class with methods to handle the various aspects of session management. Learn how easy it is to implement the SessionHandlerInterface interface and store your session data in a Redis database.
Proc_Open: Communicate with the Outside World
There are many ways to interact with external processes, for example web services, message queuing systems, sockets, temp files, etc. Given the requirements of how and what you need to work with, you might find yourself working with the
proc_open()function. It spawns a new command like
exec(), but with open file pointers which can be used to send and receive data to achieve interprocess communication (IPC). This article will show you how easy it is to use this powerful function.
Listing Packages on Packagist for Composer
You’ve created an awesome library, and now you’re ready to open source it and share it with the world. The modern way is increasingly becoming through Composer and Packagist. In this article you’ll learn what information is needed in your composer.json file and how to list your library on Packagist so others can easily find it.
Base Converting and Binary Operators
Learn how counting systems are structured, how to convert between various number system, and how to use binary operators in PHP. After reading it, you’ll be able to incorporate functionality that relies on these seemingly tricky concepts in your scripts with ease!
Generating One-Time Use URLs
A one-time URL is a specially crafted address that is valid for one use only. It’s usually provided to a user to gain privileged access to a file for a limited time or as part of a particular activity, such as user account validation. In this article you’ll see how to generate, implement, and expire one-time URLs.
6 Things to Consider when Choosing a Framework
Not every application needs to be written using a framework, But if you’ve decided that yours does then it’s beneficial to compare your needs against the features and benefits of the various offerings. It may be a framework you’re already familiar with, or it may be a new one, but only through objective analysis can you be certain it’s truly the best fit. Asking yourself these six questions will help you intelligently whittle down your options.
Working with Slim Middleware
Slim that offers routing capabilities for easily creating small PHP applications. An interesting, and powerful, feature is its concept of Middleware. Slim middleware can be written that wraps the application, and has access to and can affect the app’s environment and request and response objects in a chained manner. Middleware is an eloquent solution for implementing various aspects of a Slim app. See how Slim middleware works and how you can implement your own custom filter-like services.