If you’re using PHP 5.5+, this should be all you need to securely save passwords:
$sHash = password_hash('ThePassword', PASSWORD_BCRYPT, ['cost' => 12]);
Checking is as easily as: if (password_verify('ThePassword', $sHash)) {…}
Or do you guys have other thoughts?