This is a good library for making using the password_* functions even easier. It also supports legacy hash conversion:
https://github.com/jeremykendall/password-validator