Place heartstr.php at /, create a table and configure it to talk to your MySQL database as instructed in the file. Place the following into your template markup (uses jQuery, view source to customize):
This work is licensed under a Creative Commons Attribution 3.0 Unported License. Just fork me on GitHub.