O'Reilly logo

Instant Simple Botting with PHP by Shay Michael Anderson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Quick start - developing a bot

Now that we have covered the development environment, we can get to the fun material, that is, programming our first bot. To begin with, we will develop an HTTP package, which we can use in our bot applications to handle HTTP requests and responses.

Step 1 – HTTP request classes

Now that we have discussed our development environment, coding standards, and how basic HTTP requests and responses work, let's create an HTTP request class that actually does something useful. Again, if you are not familiar with developing PHP classes, and using PHP objects, you will want to research on these topics before reading this section. While this book is a starter book for developing PHP bots, I want to teach you the correct way to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required