abdyek / whoo
database agnostic authentication library
v1.0.0
2022-01-15 18:48 UTC
Requires
- firebase/php-jwt: ^5.4
- propel/propel: 2.0.0-beta1
- symfony/console: ^5.4
Requires (Dev)
- phpstan/phpstan: ^0.12.99
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2025-03-08 12:39:33 UTC
README
Whoo is a database agnostic authentication library to manage authentication operation easily. Whoo provides you a layer to access and manage user and authentication in your application using Propel ORM.
Installation
composer require propel/propel "2.0.0-beta1" abdyek/whoo ^1.0
Features
- Easy installation, building, usage and learning
- Two-Factor Authentication support
- OAuth2 authentication provider support
- Database agnostic. MySQL, MS SQL Server, PostgreSQL, SQLite, Oracle support (powered by Propel ORM)
- Able to configure for you application
- Portable and standalone
- Destroyable JSON Web Tokens
Getting Started
require 'vendor/autoload.php'; use Abdyek\Whoo\Whoo; // Whoo once needs to load Propel config Whoo::loadPropelConfig(); // Sign Up $signUp = new Whoo('SignUp', [ 'email' => 'new_user_email@example.com', 'password' => 'this_is_password', 'username' => 'abdyek', ]); $signUp->success(function(array $response) { echo $response['user']->getUsername() . ' registered whoo database'; })->exception('NotUniqueEmail', function($e) { // Oops! the email already is registered })->exception('NotUniqueUsername', function($e) { // Oops! the username already is registered }); $signUp->run();
Documentation
You can reach all controller class and other info at wiki page.
Versioning
Whoo will have semantic versioning when first stable release.