I wouldn't bother with the PayPal API because you can simply create a PayPal subscription button within PayPal and integrate PayPal's Instant Payment Notification (IPN) into your database - this is simpler than using PayPal's APIs IMO.
There's actually a useful tutorial/script here: http://net.tutsplus.com/tutorials/php/using-paypals-instant-...