Have you ever arrived at a movie, flight or concert and realized you’ve forgotten your paper ticket? Imagine how much worse it would be if you showed up at Willy Wonka’s front door, but forgot your golden ticket! To prevent an epic disaster such as this, we’re going to build an app that delivers Willy Wonka’s golden ticket directly to your phone using MMS. All the Oompa Loompas have to do is scan it. Not Willy Wonka? Don’t worry, this code should be useful for any app or company that distributes tickets. Hopefully computers are more helpful with the golden ticket than last time.

Our Delicious Ingredients:

PHP >= 5.4

Laravel

Endroid QRCode Library

Twilio PHP library, Twilio Account and MMS Enabled Twilio Number

A lifetime supply of chocolate* (*not required)

I Want It Now!

Some people just can’t wait to get what they want. If you want to deploy this app right now use the heroku button below:

Laying Our Foundation with Laravel

Laravel is a PHP framework that let’s you write “PHP that doesn’t hurt”. If you haven’t used Laravel before, my fellow evangelist Kevin Whinnery wrote a great post showing you how to get started or you can check out the Laravel installation guide. Once you’ve got Laravel set up, let’s create a new laravel project called goldenticket: