Taylor Otwell — Creating the Laravel PHP Framework

Taylor Otwell is the creator of the Laravel PHP framework and a software engineer at UserScape. Since 2011, Laravel has become one of the most popular open source PHP projects in the world, with a large and devoted community. In this interview with Len Epp, Taylor discusses his career, the creation and development of Laravel, and his experience writing and publishing his Leanpub book Laravel: From Apprentice To Artisan.

Len Epp: I’d like to start by asking how you got started in programming, and what led you up to the point where you created the Laravel framework.

Taylor Otwell: Well, I’ve been interested in computers ever since I was a kid, like probably many of us were. I went to Arkansas Tech University here in Arkansas and majored in information technology. In college, I learned the basic C++, but I wasn’t really familiar with open source programming or programming as a hobby. When I graduated, I went to work for a large trucking company here in the U.S. called ABF Freight, and there I started doing mainframe COBOL and .NET at the same time, which was an odd mix. They had a six-month training program, taught me .NET, and one of the great things about working at ABF was I worked with a very good group of programmers. They taught me a lot about programming, a lot about software design, and started to introduce me to open source software.

So now I was doing .NET at work, but in my free time, I had ideas for side businesses. And I knew from my college experience that PHP was a popular web language and that it was cheap to host. So I thought, hey, why not? I’ll learn some PHP and just hack on some of these ideas at night. I can just throw the files up on a server and I’m good to go.

Now, as far as the Laravel framework, I was using another framework called CodeIgniter and was continually hacking the core to make it behave more how I thought it should behave from my experience with ASP.net. I wanted things like dependency injection and a better templating system, a better ORM. So I started hacking on Laravel in my free time at night and released it after about five or six months. It was a very small framework at first, but of course now it’s grown to be quite popular and a full stack framework.

Len: Did you work on it independently, or did you have people helping you along the way for the first release?

Taylor: I worked on it totally independently. I did all the coding and of course drew inspiration from other projects. So indirectly, there was lots of help from projects that were built before mine. But I was the only one doing the coding.

Len: Was there a particular type of developer that you had in mind when you were building it?

Taylor: It seems to click a lot with people who want to build something very rapidly, people who like lots of great documentation. From the very first day that I released Laravel, I had total and complete documentation over the project. I knew that documentation was king for new open source projects. If a project comes out without very thorough documentation, like a lot of projects do, it’s just a lot harder for it to gain steam. So I knew that even if the framework wasn’t the best PHP framework out there on the first day of its release, if it had good documentation, I could build a solid community around that.

Len: It must have been very exciting to see the community develop around it. Did that happen quickly, or did you have to do a lot of encouraging?

Taylor: It took a little bit of time. Building the community nowadays is a little easier thanks to things like Hacker News and Reddit. You can gain some early adopters pretty fast. Earlier I would have probably a few dozen people that were regularly using it, and that quickly just boomed, and a lot of that was because I was very persistent in doing screencasts, new features. Laravel at first was half framework, half marketing effort by me. I was constantly trying to put new information out there, advertise new features on various PHP websites, and keep getting the word out, even after the initial launch.

Len: And just earlier this year, you released version 4. Can you tell me a little bit about what’s new in this version?

Taylor: With version four, we wanted to make a big architectural change under the hood, because in versions one through three we were still feeling our way towards how the framework should behave and how we wanted it to look. With version four, we knew we needed to improve on a few things. One was testability. We wanted the framework to be very testable out of the box, with good PHPUnit support. We also wanted to start playing nicely with Composer, which is a PHP package installation system, sort of like Bundler for Ruby. We adopted that as our primary way of distributing packages, and that opened up a whole ecosystem of packages that are easily installable and integrate really well with Laravel. I think that’s going to be very beneficial for years to come.

Len: Were your decisions about the new features driven by signals you were getting from your community?

Taylor: Yeah, they were. I’ve always been really involved with the community personally, early on in the forums and now lately more in IRC and Twitter. I’m always listening to community feedback and seeing how things are trending. Plus, I work on a large Laravel application day to day myself, so I tend to identify the awkward spots in the framework fairly quickly, because I’m using it so much in a real world setting. The community drives the development in a lot of ways, and then I add my own little insights here and there, too.

Len: I’ve seen people refer to the community as a family online. It seems to be very friendly and supportive.

Taylor: That was one of the goals from the start, to have a very inclusive community, but at the same time not a stagnant community. We want to be very welcoming of newcomers, but we also don’t want to dumb things down too much. We want to encourage people to grow. That’s one of the things people say about Laravel, that it sort of grows with you, in the sense that when you first start using it, it’s very easy to build out an application, to get some basic routes going, to log people in, to put some stuff in the database. But as your architectural skills grow, you have access to more powerful features like the IOC container, background queuing, Redis caching. So the framework evolves as you evolve as a developer, which is nice.

Len: I know you’ve just returned from Laracon 2013, a two-day conference in Amsterdam, and the second Laravel conference this year. Can you tell me how it went and what the highlights were for you?

Taylor: We’re having an annual Laracon US and an annual Laracon EU right now. The first one was in Washington, D.C. and the second one was in Amsterdam, and I think it went really well. We actually had Fabien Potencier, I’m pretty sure I’m not pronouncing that right, but he is the maintainer of the Symfony framework, which we use, we consume about seven or eight of their components. We also had Jordi from Composer, the co-maintainer.

That was really great, because we had some really prominent members of the PHP community that don’t necessarily even use Laravel on a day-to-day basis, but have had a big impact on Laravel. I think people enjoyed meeting them and bouncing ideas off them. And it was just a fun time of hanging out. Conferences are always like half learning, half social, or maybe even 60 or 70 percent social, 30 percent learning now. So it was fun just to hang out with everybody and meet people you’ve talked to online.

Len: It’s probably been a roller coaster couple of years, to go from launching something you built on your own to going to a conference in Europe and meeting a few hundred people who are using it.

Taylor: Yeah, it’s really crazy. It’s just wild. It’s weird to go somewhere and have people say they’re using Laravel, and it seems like just not too long ago I was sitting in my office building it. But it was fun to meet people that I’ve known for a couple years now.

Len: You mentioned your day-to-day work at UserScape. Can you explain a little bit about what UserScape is doing?

Taylor: We have two products. We have HelpSpot, which is an on premise help desk solution. It’s very powerful, very flexible, and you can download it and install it on your own servers, which a lot of companies really like. Our second product is Snappy, which is also a help desk solution, but it’s a little lighter weight. It’s a SaaS application, so you just log right in over the internet, you don’t need to download or install anything. It’s got a really nice interface, it live updates with your emails, and you can assign stuff to other people using at tags, you can hashtag emails to categorize them. It’s besnappy.com if you want to check it out.

Len: I’m sure some of our listeners would be interested to know how you manage being the architect of Laravel with your work at UserScape day to day.

Taylor: I have a routine schedule. Eight to five, I work from home on UserScape stuff, that’s primarily Snappy, which is built on Laravel. Then after work, from like five to 9.30 or 10, I just hang out with my family. And then after my wife goes to bed, I work on Laravel for a few hours, from like 10 to midnight or 10 to 1, and then get up the next morning and repeat. Sometimes I’m too tired to stay up and work on Laravel. Usually a few days a week I get to work on it at night. And my boss at UserScape also gives me the last week of every month to work on Laravel, which I usually spend going on a pull requests rampage and closing like hundreds of issues. So that’s really nice.

Len: That’s great to have that kind of support. Can you give me some indications about what you see in the future for Laravel, say next year or even the year after that?

Taylor: One of the complaints we had about Laravel early on was that we released versions really quickly. At first that wasn’t really an issue, because we were all hacker early adopter types. It was like, we don’t care if you break backwards compatibility, just give us cool new stuff. But as the framework has grown and more businesses are using it, the development has gotten a little more mature in terms of our releases. We’ve adopted a six-month release cycle, which started this May. So that means Laravel 4.1 will be in November, and then Laravel 4.2 will be in May of 2014. Right now there’s no backward-breaking changes planned for either of those releases, but we are releasing some exciting new features. We’ve got some new components in the framework to let you make deployments easier, and some new debugging capabilities coming up for the release in November. So we’ll have two point releases, incremental releases just adding cool new stuff, but no major re-architecting.

Len: I’ve heard you speak on podcasts about how a lot of people who make negative comments about PHP in forums often don’t even know where PHP has gone. Can you say a little bit about how PHP has changed in the last couple of years?

Taylor: I tell people that when I first started writing Laravel and using PHP a few years ago, I almost felt guilty for not using Rails. I kind of felt like less of a programmer. But now PHP has grown so much, with 5.3 when we got namespaces and closures, and now with 5.4 and 5.5. I’ve talked to a lot of people that say they felt the same way, like, I really shouldn’t be using PHP, I should be using Ruby or Python. But now, with these new tools, people feel comfortable with PHP, and they don’t feel bad for using it. I never think anymore personally, oh, I should go try Rails, because everything that I need is pretty much available in PHP, and Laravel feature for feature is really getting to the point of being on par with Rails, especially with version 4.

So I think it’s a really exciting time for PHP, and tools like Composer and this emphasis on growing the package ecosystem is really nice. Because when I do look at Ruby and Rails, one thing that I do envy is just the sheer amount of cool gems and stuff they have. As Composer grows in popularity and more and more people build these packages, hopefully we can catch up, because that is one area they’ve been whooping up on PHP. But I think we’re heading in the right direction for sure.

Len: You say that when you were first launching, it was really important to build community and have documentation and screencasts. Is media attention something you’re interested in, or something that just drops out of all the other activity you do?

Taylor: I do still try to market the framework in a sense, and I view the framework as a product. I don’t look at it as just a side project anymore. I want Laravel to have a certain personality and presentation, and so I spend a lot of time thinking about that, thinking about how the docs look, how they read, how the framework feels in terms of its API. I’m almost obsessive in the sense of how the framework comes across and the way that it presents itself. I want it to present itself as a light, accessible tool that’s out of your way, that’s very easy to use and helps you build a lot of great stuff really rapidly.

Everyone’s inspired by a lot of what Apple has done, in the sense that they’ve made technology very accessible and usable with things like the iPhone. I think of Laravel as a product, obviously not anywhere near the scale that Apple operates on, but I want it to have that same kind of accessibility.

Len: I know you get asked this question a lot, but I have to ask it because some people might not know. Can you briefly explain where the name Laravel comes from?

Taylor: The name actually has no meaning. I was struggling to come up with a name and I just started thinking of words that sounded cool in my head. It does rhyme with a word that has meaning. In the kids books The Chronicles of Narnia there’s a place called Cair Paravel, which is where all the kings and queens live. So it rhymed with that, Laravel and Paravel, and it just stuck. But it has no meaning, it just sounded good in my head. It’s really hard to come up with names, so I gave up coming up with meaningful names.

Len: If you don’t mind, I’d like to move on to some questions about your experience with Leanpub. Can you tell me how you found out about us and why you chose us for your publishing platform?

Taylor: I actually found out about Leanpub from Dayle Rees, who is maybe the all-time highest grossing author on Leanpub. He also wrote a Laravel book, more of an introductory book. He really enjoyed Leanpub and recommended that I try it out.

Len: Yeah, it’s been an extraordinary thing for us. I’m actually checking our bestsellers right now. Dayle’s book Code Bright is on top, yours is number three, Dayle’s first book is number seven, and Jeffrey Way’s book Laravel Testing Decoded is the 10th. So in our top 10, three of them are Laravel books.

Taylor: Yeah, it’s wild. It’s really crazy.

Len: And how long has Dayle been involved with the project?

Taylor: Gosh, it’s probably been a year and a half now. He’s been around for quite a while. But with the latest version, Laravel 4, he really came on board and started helping me manage the pull requests, because we get quite a few every day. And he’s been really helpful in IRC, just answering questions and stuff.

Len: How would you describe your experience using Leanpub to write and publish this book?

Taylor: Leanpub is really awesome because I feel like I don’t notice Leanpub, and I mean that in a good way. I just write my Markdown and go to Leanpub and hit publish, and y’all handle everything. I never really have any Leanpub headaches. Markdown is such an easy way to write, and because all the Laravel documentation is already in Markdown, I’m used to writing it. The way that Leanpub lets you manage everything very easily, it’s just so straightforward, and I could get started really fast, even now with multiple translations. It’s very easy for me to set up a new book and get a co-author set up and divide out the royalties.

Len: I’m curious, unless I’m mistaken, you didn’t publish your book in progress. You published it when it was finished.

Taylor: That was a discipline thing for me, just so I would finish it first and put it out, and not get distracted with other things and never come back to it. I do have a few chapters in my head now that I’ve gotten some community feedback on what people thought was missing, that I probably will go back and add. But essentially the book was published with all the material I’d originally conceived.

Len: Is engaging with people directly important to you, and is there more we could do to help you do that, or is that something you’re happy to manage on your own?

Taylor: Right now that’s been easy enough to manage on my own, since I communicate with the community a lot through Twitter. People have been getting back to me on Twitter with feedback and ideas for what they’d like to see expanded on. It’s always hard to tell, when you’ve written the framework you have so many blind spots to what might be hard for other people to understand. It might make reasonable sense to you, but it could be clear as mud to everyone else. So it’s nice to get the feedback, because it’s very hard for me to ascertain what needs to be worked on.

Len: So you don’t find yourself wishing there was something more systematic? O’Reilly has a kind of reporting system where line by line, people submit errata and suggestions.

Taylor: You’re putting ideas in my head now. It would be cool to have an almost GitHub-style interface where people who have bought the book can submit pull requests to fix stuff. That would be nice, but I’m sure that would be a lot of work. Mainly, 10 through 20 other people email me stuff to fix, and I just go ahead and fix it in the Markdown, hit publish, and the update just goes right out to everybody nice and smooth. So it’s been nice.

Len: Do you watch Google Analytics for your book pages or anything like that?

Taylor: No, I don’t. I’m really bad about analytics. I don’t do a lot of analytics on the downloads or on the book or anything. But it would be interesting to know who my primary buyers are.

As the creator of a framework, I found it was a little easier for me to publish the book because I had a fairly large Twitter following already. But it would be interesting to know, coming into Leanpub as a new author that may not be well known, although you could have great things to say in your book, what the best ways to get the word out would be.

Len: Can you tell me a little bit about what the book is about? I know it’s about 63 pages long, and I can see that it’s directed at people who are past the beginner stage.

Taylor: Dayle’s book was the introductory one, so I wanted to write a, here’s where you go next after you finish Dayle’s book, when you’ve got the basic grasp on the concepts of the framework and now you’re ready to go deeper and see what else the framework has to offer in terms of building a more complex application. Something like Snappy, like we do at UserScape, where you have lots of classes, lots of stuff going on. How do you structure that in PHP? PHP is not really well known for being a well structured and thought out area of development. We’re trying to change that and give people some ideas for how to structure a complex PHP application, and particularly a Laravel application, but there’s lots of good info even if you’re not using the framework. We have five chapters, one on each letter in the SOLID acronym, which is a pattern of good software development from Uncle Bob, and then we have a few other chapters that are Laravel specific, where to put your files and how to organize everything.

Len: I see that the book is very well produced, including the cover. Did you have technical reviewers before you launched it, or did you hire editors?

Taylor: I didn’t hire anyone. I did have more prominent or key members of the community review the book. I sent it to Jeffrey Way, who wrote the Laravel testing book, and of course I sent it to Dayle, who wrote the introductory book. A few other people I communicate with a lot, I let them read it over and get their feedback, correct typos, or tell me I need to expand in certain areas. So it was nice to have a few members of the community I could rely on there. I kept the book straight to the point, which is why it’s fairly short. But I think the quality of the information is pretty good even though the quantity is pretty short. And at the same time, I personally don’t like to read 200, 300 page books, so I wanted to keep it fairly readable, where a person could buy the book and actually finish the whole book word for word fairly easily.

Len: Did you consider at any point going down the traditional publishing route?

Taylor: Yeah, I did actually. I got a few offers from other publishing companies before I settled on Leanpub, but it just doesn’t make sense anymore for me. With the framework being established and having a fairly large community, I just thought it’d be silly for me not to use Leanpub, because I would be throwing away tons of money to write for a traditional publishing company. And it was harder to write. The platform was not as good. I couldn’t just write in simple Markdown, which was a deal breaker for me. I have to be able to write this in a simple Markdown syntax, because I can’t do some legacy word crap and just take forever. So Leanpub was an obvious choice, even though I had offers from, I think Manning was my main offer.

Len: Was timing an issue at all? The traditional publishing process really can take quite a long time.

Taylor: I was nervous about that, committing to the publisher and being pressured to finish the book by a certain day. I have family, and I have a day job, so being able to write at my own pace was another big factor in that decision. There were just almost no cons to using Leanpub. It was more money, it was more time, it was no one telling me what to do or what to write on, it was an awesome platform with Markdown. It was a no-brainer. There was really no question.

Len: That’s interesting, that one of the positive aspects was the freedom to take more time if you needed to. When we speak with authors, especially people who are successful like you are, they often feel hamstrung by the amount of time that it takes with a traditional publisher.

Taylor: Yeah, for sure. I could tell it was just going to suck. I didn’t want to commit to a timetable because stuff comes up. Something comes up in the framework and I have to spend days on that, don’t get to work on the book, and now I’m behind. It was just going to be too much stress and too much pressure, I thought.

Len: Have you been updating the book when you receive, say, typo suggestions?

Taylor: Yeah, I’ve released a few updates. I’ve got a couple of emails of typos I need to go ahead and push out here soon. But I’ve made several updates to the book to correct things, fix any wording mistakes or example mistakes. People have been nice to report them and help me stay on top of that.

Len: And have you used the feature that allows you to email readers when you update the book, or has it just been silent updates?

Taylor: No, I have emailed on every update and mentioned, hey, this just fixes a few typos. It’s also a way to say thanks for buying the book, and if there’s anything you see that’s missing, let me know. I use it as a way to communicate at the same time, not just talk about the update. I always remind people, if there’s anything you want me to expand on, tell me, because that’s how I’m basing what any further chapters will be.

Len: I see that you’ve set your minimum price at $29.99 and your suggested price at $34.99. Was there any reasoning behind that?

Taylor: I priced it the same as Dayle’s book, and I also priced it a little higher because the framework is free. It’s open source, and I had made relatively little money off the framework. Before I wrote for Leanpub, I may have made, I don’t know, let’s say $1,000 or $2,000. Not tens of thousands of dollars. So I looked at the book as half donation, half product, so to speak. I think people have been really receptive to the idea of, hey, I’m making money building apps for clients on this framework, and this is a way to give back and get something at the same time. It’s a donation that has a reward to it, and people have been really understanding of that, even though it is a short book priced a little higher. It is a nice gesture towards the framework, and it will help us do some things down the road that we have planned that might cost a little money.

Len: Excellent. And have you used any of our features like the coupon feature?

Taylor: Oh yeah, I’ve used the coupon dozens of times. When I released the book, I let people know that if there was a financial hardship, to go ahead and send me an email and I would give them a copy of the book. So we’ve had various people, college students, things like that, that are strapped for cash but want to learn about the framework, and we’ve given copies of the book to them. And at Laracon EU we actually gave away a 180 use coupon, so everyone at the conference got a free copy of the book. Coupons have come in very handy.

Len: Do you have any specific feature requests, something you’d love to see that occurred to you when you were using Leanpub?

Taylor: The only one that’s come up recently was bulk creating a lot of different coupons. With Laracon, you needed to create like 108 coupons. What I do is make one coupon with 108 uses. If I could somehow create a hundred coupons at once and just get a list of all the new ones, that would be great. But it wasn’t too hard to work around. And I don’t think anyone tweeted the coupon code to the outside world.

Len: On that note, is that something you have a strong opinion about? Leanpub books are DRM free, and people can, with two clicks, get a refund within 45 days. Did you think about those things at all?

Taylor: I really didn’t. If people don’t like the book, I want them to have a refund. And if someone gets a refund because they just want their money back, I felt like that would be the minority, which is not the way I thought the community operates. Like we said, it’s a friendly community. I didn’t expect it to be a huge problem of people buying the book and then saying, oh, I’m getting a refund and keeping the book. So I didn’t really worry about it.

Len: And piracy isn’t a preoccupation of yours?

Taylor: Not that I know of, we haven’t had any problems with it. I’m not really too concerned about it. I think people respect the framework enough, and what it’s done for them and their business, that 30 bucks has been a drop in the bucket compared to what they’re getting out of it on a day-to-day basis, at least the people I’ve talked to.

Len: Do you have plans to write another book? You mentioned already that you’ve got future chapters probably to add to this one.

Taylor: I think I’ll stick with this book for a while and add some further chapters. I’m kind of wary of pimping the framework, so to speak, where I don’t want people to think I’m trying to profiteer on the framework. So I don’t have any ideas for releasing a second book right now. I’m just going to continue to expand the book I have, and everyone gets updates for free, which is nice.

I think Leanpub has really changed tech publishing in a way, in that all these authors have access to a great publishing platform where they get rewarded fairly for their work. It’s awesome for the whole tech community, and I really commend you guys on the platform.