A FAS auth library for PHP.
PHP Shell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.divinerconfig
.gitignore
FAS.php
FASUser.php
README.md
deploy-docs.sh
testcase.php
util.php

README.md

php-fas - PHP Authentication Library for FAS

$user = id(new FAS())
  ->setDebug(2)
  ->setUsername($username)
  ->setPassword($password);
echo $fas->authenticate() ? 'OK' : 'Failed';

Normally, you'd store the output of $fas->authenticate(), and check it (using ===). If it's false, auth failed. Otherwise, it contains an instance of FASUser, which contains information about a given user.

License

GPLv2, same as FAS.