Do not use php for business logic.
If you are running WinTel with SQL Server DB, I would use C # or another language in the .NET framework.
If you use something like Linux / Oracle / Solaris, with Oracle / PostgreSQL / MySql DB, I would use Java, but many of the SOs would probably push Python.
You can leave with different combinations, but the two that I have listed usually make it easier. There are various methods of interacting with the database through the abstraction layer, and it will also make it easier for you to reveal the functionality of your business layer as REST or SOAP web services. You can use them in your PHP web interface.
source
share