Getting it to work
The PHP SDL homepage is at
https://github.com/phpsdl/extension - go there and follow the installation instructions to prepare your machine. At the time of writing, they have instructions for Linux and OS X only, but nothing for Windows users – sorry!
If this was helpful, please take a moment to tell others about Hacking with PHP by tweeting about it!
Next chapter: First steps >>
Alternative PHP uses What else can be done with PHP? Command-line scripting Why use shell scripts? CLI SAPI differences Your first CLI script Advanced command-line parsing Getting down and dirty Getting into the swing of things Sending code direct to PHP The grand finale CLI Conclusion Graphical user interfaces Getting started GUI toolkits A Basic GUI Multiple Windows Handling popup menus Advanced GUIs Using Custom Parameters GUI Themes Distributing your apps Graphical Interfaces Conclusion Making games Text-based world planning Text game v1 Getting graphical Getting it to work First steps Moving our sprite Clearing the screen Last tweaks Games conclusion Making your own language Why make your own language? The elements of a compiler Analysis Output Planning it out How to parse text into tokens What is a token? How parsing works Finally, execution If you have made it this far... Operator precedence The script in (almost) full Mini-language conclusion Summary Further reading Next chapter
Table of Contents
Copyright ©2015 Paul Hudson.
Follow me: @twostraws.