Convert text to bibtex php library