Download the PHP package faqzul/codeigniter-fauthz-library without Composer

On this page you can find all versions of the php package faqzul/codeigniter-fauthz-library. 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 codeigniter-fauthz-library

CodeIgniter-FauthZ-Library

Build Status

Authentication library for PHP-Framework CodeIgniter. It's based on Tank Auth, although the code was seriously reworked.

Prerequisites

Feature

It's simple

Getting Started

Composer

Manual

  1. Download the latest version of the library.
  2. Unzip the package to application/third_party/.
  3. Download the latest version of CodeIgniter-CRUD-Model.
  4. Unzip the package CodeIgniter-CRUD-Model to application/third_party/.

And then install database schema into Your MariaDB database.

Configuration

Composer

Change the following line in the application/config/autoload.php file for use in Your controller class.

Setting FauthZ Preferences

And more preferences You can see at config/fauthz.php.

Manual

Usage

register

Register user on the site. If registration is successfull, a new user account is created. If email_activation flag in config-file is set to TRUE, then this account have to be activated by clicking special link sent by email; otherwise it is activated already. Please notice: after registration user remains unauthenticated; login is still required.

login

Login user on the site. If login is successfull and user account is activated, s/he is redirected to the home page. If account is not activated, then send_again is invoked (see below). In case of login failure user remains on the same page.

logout

Logout user.

send_again

Send activation email again, to the same or new email address. This method is invoked every time after non-activated user logins on the site. It may be useful when user didn't receive activation mail sent on registration due to problem with mailbox or misprint in email address. User may change their email or leave it as is.

activate

Activate user account. Normally this method is invoked by clicking a link in activation email. Clicking a link in forgot password email activates account as well. User is verified by User ID and authentication code in the URL.

forgot_password

Generate special reset code (to change password) and sent it to user. Obviously this method may be used when user has forgotten their password.

reset_password

Replace user password (forgotten) with a new one (set by user). Then method can be called by clicking on link in mail. User is verified by User ID and authentication code in the URL.

change_password

"Normal" password changing (as compared with resetting forgotten password). Can be called only when user is logged in and activated. For higher security user's old password is needed.

change_email

Change user's email. Can be called only when user is logged in and activated. For higher security user's password is required. The new email won't be applied until it is activated by clicking a link in a mail sent to this email address.

reset_email

Activate new email address and replace user's email with a new one. This method can be called by clicking a link in a mail. User is verified by User ID and authentication code in the URL.

unregister

Delete user account. Can be called only when user is logged in and activated. For higher security user's password is required.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details.


All versions of codeigniter-fauthz-library with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.8
faqzul/codeigniter-crud-model Version ~3.2.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 faqzul/codeigniter-fauthz-library contains the following files

Loading the files please wait ....