There was a similar question asked in a forum but the solution provided spit out an error. Perhaps you’ll get lucky and this will work for you. Also don’t forget to register the DLL with Windows.
https://www.daniweb.com/programming/web-development/threads/120748/php-call-dll
solved How can I link a dll file using php?