Ed Zynda

Coder | Hacker | Superhero

What Is A Microframework? Getting Started With Silex

Posted on · Tagged in

There is no shortage of coding frameworks these days. I can’t scroll through my twitter and facebook feeds or my favorite dev forums without stumbling upon something new. Like a hungry barracuda, I’m instantly attracted to new shiny things. While browsing reddit.com/r/php I came across a mention of a microframework called Silex. Now you may be wondering what a microframework is. I was wondering the same thing, so I took a look at the project’s website to figure out for myself.…

Read more »

Using The PHP Built-in Webserver

Posted on · Tagged in

For years Ruby and Python have been stealing the show with innovative features and functionality to help developers get their projects off the ground. PHP was left in the dust for quite a while. One simple but invaluable feature that PHP had been lacking was it’s own webserver. Since version 5.4 however, PHP developers can now enjoy this modern convenience. Not all backend developers are system administrators. They know how to code and code well.…

Read more »

The PHP Renaissance: FIG and PSRs

Posted on · Tagged in

If you worked with PHP in the early days or even if you are a newcomer, you are probably familiar with how messy and painful working with another developer’s code can be. PHP has a low barrier to entry which is great for getting things done. At the same time though, it creates a culture of lazy developers. Even those developers with years of experience have coding styles that are hard to wade through.…

Read more »

Using Repositories In Laravel

Posted on · Tagged in

The past couple of days I have been cramming my brain with coding knowledge. I’m working on a side project that I’ll likely announce in detail as it gets closer to launch. Since I’m starting from an empty Laravel project and building it from the ground up, I’m learning quite a bit about the framework and even some of the new features in PHP 5.4 and above. One technique I’m starting to better understand is that of dependency injection.…

Read more »

Using Route/Model Binding In Laravel

Posted on · Tagged in

As I work more and more with Laravel, I keep running across some really cool time saving tricks. One of those time savers is route/model binding. Let’s say that you have the following route setup. <?php Route::get(‘books/{book}’, function($book) { return Book::find($book); }); That’s pretty simple right? Basically you point your browser at /books and then pass a book id and then use the ‘Book’ model to fetch that book from the database.…

Read more »
Subscribe to my newsletter and get a free copy of my book, Aspect Oriented Programming in PHP.