Download the PHP package laswitchtech/php-auth without Composer

On this page you can find all versions of the php package laswitchtech/php-auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package php-auth

phpAUTH

License GitHub repo size GitHub top language Version

Features

Why you might need it

If you are looking for an easy way to setup authentication and authorization in your project. This PHP Class is for you.

Can I use this?

Sure!

License

This software is distributed under the GNU General Public License v3.0 license. Please read LICENSE for information on the software availability and distribution.

Requirements

Security

Please disclose any vulnerabilities found responsibly – report security issues to the maintainers privately.

Objects

Relationships

This library also includes support for relationships. Here are the ones already used in phpAUTH:

User Statuses

Understanding Roles and Groups

When using this library, permissions are assigned on roles. Roles can be assigned directly to a user or through a group of users. The highest permission level provided is used for validation. For example, if a user is member of role Administrator and User, both possess the permission Dashboard, Administrator's level is set to 4 and User's level is set to 1, then the effective permission level is 4.

Permission Levels

Installation

Using Composer:

How do I use it?

IMPORTANT NOTICE, phpAUTH does not handle http headers. phpAUTH relies on your application to handle those. If you want your application to throw 403 headers for exemple, you will need to use the related method for validation and then throw your headers accordingly.

Examples

There are many examples for you to check out in the example folder.

Initiate

Generate a GDPR/CCPA Compliance HTML Form

Check if we can access through a specific hostname

Check if a User has a specific permission

Check if a User was authenticated

Check if 2FA Request is ready

This method is useful to determine when to show the 2FA form.

Check if email is verified

This method is useful to determine if the user's email address has been verified.

Logout user

This method logs out the user.

Retrieve Authentication Error

This method retrieves authentication errors.

Retrieve Authentication Status

This method retrieves the user's status.

Using Managers

First managers allow you to manage objects such as Users, Organizations, Groups, Roles and Permissions

Using Objects

Installer Example


All versions of php-auth with dependencies

PHP Build Version
Package Version
Requires components/jquery Version ^3.6
laswitchtech/php-database Version ^2.2
laswitchtech/php-csrf Version ^1.0
laswitchtech/php-imap Version ^2.0
laswitchtech/php-smtp Version ^2.0
laswitchtech/php-logger Version ^1.1
laswitchtech/php-configurator Version ^1.0
laswitchtech/php-sms Version ^1.0
laswitchtech/php-net Version ^1.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package laswitchtech/php-auth contains the following files

Loading the files please wait ....