Can we do Customers Segmentation using PHP and Unsupervized Machine Learning ? Yes we can !
A really basic exemple using KMeans and Standard preprocessing methods to try apply clustering on the customers based on RFM metrics.
The notebook is in French ! Don't reuse this work for your enterprise needs mostly because the performance and the accuracy are really bad !
If you really need to work with PHP and Machine Learning, you may contract the creator of Rubix ML library
This project code is under MIT licence.