Create PHP program to compare two text and find similarity

This is PHP program that is used to find similarity between two text using cosine similarity and return the result in percentage format.