In the begining (or near enough to it), PHP had a set of functions for talking to MySQL databases — mysql_connect
, mysql_query
, mysql_...
. While newer database APIs like the mysqli_
functions and PDO came along these older functions hung in there and remained hugely popular right up until the end. The end being their removal from PHP in version 7.2. There’s a lesson here about the value of being first and how hard it is to depreciated code.
There’s also a lesson in never letting go — this library is a drop in replacment for the old mysql_
functions. The developers have implemented the old mysql_
functions in terms of mysqli
. You can drop this library into you old mysql_
project and continue to kick that 14 year old “refactor mysql_
calls” JIRA ticket down the road a bit further.