rde/auth-basic

簡單的 Http Basic 驗證

v1.1.0 2015-11-10 16:34 UTC

This package is not auto-updated.

Last update: 2024-12-17 04:34:52 UTC


README

Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version Total Downloads Latest Unstable Version License SensioLabsInsight

// 建構一個 basic 驗證物件

$basic = new Rde\Auth\Basic(array(
    'user_name' => 'encode_password', // 請使用 password_hash
));

// 登入判斷

$basic->isAuthorized() or $basic->challenge();