Download the PHP package ocolin/bx-auth without Composer
On this page you can find all versions of the php package ocolin/bx-auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ocolin/bx-auth
More information about ocolin/bx-auth
Files in ocolin/bx-auth
Package bx-auth
Short Description Tool for authenticating using Billmax Auth database
License MIT
Informations about the package bx-auth
BxAuth
Database Authentication for Billmax
This package is not written with any public use in mind. It's an experiment for allowing external apps to login using the authentication in the Billmax billing software.
Instantiation
To connect to the database to verify authentication we need 4 pieces of information:
- host - Name/IP of billmax server. Defaults to localhost.
- name - Name of the database table. Defaults to billmax.
- user - Username of database user.
- pass - Password of database user.
Environment variables
The constructor arguments can be provided directly, or environment variables can be used instead:
- BILLMAX_DB_HOST
- BILLMAX_DB_NAME
- BILLMAX_DB_USER
- BILLMAX_DB_PASS
See ,env.example file.
Example - Constructor arguments
Example - Environment variables
Calls
Login
- user - Username to log in as.
- pass - Password to long in with.
- session - Create a PHP session and add data to it.
By default the function returns an object with the user data in it. Setting seesion to true will add that data to $_SESSION['AUTH'].
Logout
This will log the user out, destroy the cookie, and wipe any session variables.
Check Login
Check to see if we are currently logged in. Return true or false.
All versions of bx-auth with dependencies
ocolin/easyenv Version ^2.8
php Version ^8.2
ext-pdo Version *
ocolin/global-type Version ^1.6