Welcome to the world of add-on creation.
To start you off, see my
Guide to XML Frames on the Runes of Magic Wiki. Though written mainly as a guide to using frames, it covers the add-on creation process. (BTW, bookmark the RoMWiki itself. There's a lot of info for add-on makers that you'll want to reference).
Once comfortable with that guide, move on to my
Guide to Dynamic Frames.
I've got a few other tutorials in this sub-forum that you might be interested in as well.
To learn Lua itself, start with the online book
Programming in Lua. The free online version is for the older Lua 5.0, but still relevant (RoM uses a Lua 5.1 engine). You'll also likely want to bookmark the
Lua 5.1 Reference Manual.
As you only have a little PHP experience, I strongly suggest you go over some beginner programming and data structures tutorials on the net. There are a few out there though usually they revolve around a specific computer language.
I'll try to answer any questions you may have.
Edit:
Forgot to mention, take a look at any/all of the add-ons I've posted. They are mainly for showing how some things are done so there are quite a few comments in them (usually).
Also, I've put them all in the public domain so feel free to rip them off, modify, mutate, or whatever you feel like with them (though I'd appreciate a comment in the code saying where you got it originally, but that isn't a requirement).