Download the PHP package phoxphp/auth without Composer

On this page you can find all versions of the php package phoxphp/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 auth

PhoxPHP Authentication Component

Features:

  1. Register
  2. Login
  3. Logout
  4. Activate account
  5. Block account
  6. Delete account
  7. Change password

Register

To register a user, you use the register method which requires just three parameters. Namely:

  1. email
  2. password
  3. verifyPassword

When registering a user, you can login automatically after registration by setting auto_login to true in the configuration settings.

Login

The login method is used to log a user in. To redirect automatically after a user has been logged in, you need to set auto_redirect to true in the configuration settings.

Logout

Activate account

To activate an account, you need to use the activateAccount. This method requires just one parameter which is the user's confirmation_code. By default, a user's account is not activated when registered but you can allow auto activation by setting auto_activate to true in the configuration settings.

Block account

To block an account, you need to use blockAccount method. This method requires just one parameter which must either be the user's email or the user's id.

Unblock account

To unblock an account, you need to use unblockAccount method. This method requires just one parameter which must either be the user's email or the user's id just like the blockAccount method.

Delete account

To delete an account, use the deleteAccount method. It requires a single parameter which must either be the user's email or the user's id. This method returns true if the account deleted successfully.

Change password

To update a user's password, you can use the changePassword method. The method requires two parameters which namely:

  1. oldPassword
  2. newPassword

The first parameter (oldPaasword) must be the user's current password and the second parameter (newPassword) must be the new password. This method returns true if the password changed successfully.


All versions of auth with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.6
phoxphp/glider Version >=1.0.2
phoxphp/prop Version >=1.0.0
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 phoxphp/auth contains the following files

Loading the files please wait ....