Easy PHP Dates and Times With Carbon

Easy PHP Dates and Times With Carbon

PHP Dates and Times With Carbon are made incredibly simple with the intuitive API provided by this great library. Carbon extends the native PHP DateTime class which gives it access to all of the functions you are familiar with, in addition to some other great new features. Carbon makes use of it’s own namespace aptly named Carbon. When you get started, make sure to import that namespace such as use Carbon/Carbon; to get up and running quickly.…

Autoloading For Code Organization

composer autoload

Autoloading helps us to organize our code in a clean fashion. This makes it easier to understand how all of the pieces fit together. In fact, I would go as far as to say that code organization is half the battle. With the introduction of Composer to the PHP community, we now have a way to handle code organization like never before. As we know, Composer is The Dependency Manager for PHP.…

Php Tutorials For Beginners

Php Tutorials For Beginners

Let’s jump into some Php Tutorials For Beginners! PHP is the most widely used programming language on servers that power websites for the Internet. It is a scripting language, yet quite powerful with thousands upon thousands of built in functions. PHP is a fantastic alternative to other languages like active server pages, Java, or Ruby. When you’re first starting out with the language, it can seem a bit overwhelming to know where to begin.…

Build Your Own PCRE Regex Tester With PHP

Build You Own PCRE Regex Tester With PHP

As promised, in this episode we will build our very own regular expression tester so we can test out various regex patterns. As we covered in the prior post on regular expressions, there are many great tools to do this online as well. So what is the reason to build our own? It’s simple really, it’s fun to do and a great learning exercise too. What we’ll set out to do is build a simple one page application that accepts a string of data, or subject, as well as a pattern.…

Learning About Regular Expressions

Learning About Regular Expressions

Most likely you have come across Regular Expressions at some point during your software development. Regular expressions are one of those things that tend to make people take sides and form strong opinions. Some swear by their use, while others have a deep disdain for them. Either way, they are a necessary evil – we need to learn about them in order to round out our skills so to speak.…