Download the PHP package azamath/yii-account without Composer

On this page you can find all versions of the php package azamath/yii-account. 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 yii-account

yii-account

Latest Stable Version Build Status Scrutinizer Code Quality

Extension that provides basic account functionality for the Yii PHP framework.

Why do I want this

This project was inspired by the [http://github.com/mishamx/yii-user](yii-user module) and was carefully developed with our expertise in Yii following the best practices of the framework. It is more secure because it uses passwords with salt that are encrypted using bcrypt instead of password hashes. It also comes with support for sending mail with truly random authentication tokens that expire.

We are also currently working on additional security features (listed in the requirements below).

User interface

Login
Signup
Forgot password
Change password

Requirements

Installation

The easiest way to install this extension is to use Composer.

Run the following command to download the extension:

Add the following to your application configuration:

To use the console command you need to add the following to your console application configuration:

Run the following command to apply database migrations (you need to have a database configured for your application):

Without Composer

If you are not using Composer, then you need to download the dependencies manually and add the following to your application configuration:

Dependencies

Configuration

The following configurations are available for the class:

Usage

Now you should be able to see the login page when you go to the following url:

You can run the following command to generate an account from the command line:

Extending

This project was developed with a focus on re-usability, so before you start copy-pasting take a moment of your time and read through this section to learn how to extend this module properly.

Custom account model

You can use your own account model as long as you add the following fields to it:

Changing the model used by the extension is easy, simply configure it to use your class instead by adding it to the class map for the module:

Custom models, components or forms classes

You can use the class map to configure any classes used by the module, here is a complete list of the available classes:

Custom controllers

If you want to use your own controllers you can map them using the module's controller map:

Custom views

If you want to use your own views with this module you can override the views with your own by placing them either under your application under or your theme under .

Extending the module itself

You may also want to extend the module itself, e.g. in order to implement proper email sending. In that case you can extend the module and override the methods necessary and configure your account to use your module instead:

Normally you would need to copy all the views under your module, but we have made it easy so that you can only override the views you need to and the module will automatically look for the default views under the parent module.

The source code is also quite well documented so the easiest way to find out how to extend properly is to dive into the code and get to know the logic behind the functionality. Also, if you have any ideas for improvements feel free to file an issue or create a pull-request.

Contribute

If you wish to contribute to this project feel free to create a pull-request to the branch.

Run test suite

To run the test suite you need to run the following commands:

Now you can use the following command to run the test suite:

Translate

If you wish to translate this project you can find the translation templates under . When you are done with your translation create a pull-request to the branch.


All versions of yii-account with dependencies

PHP Build Version
Package Version
Requires phpnode/yiipassword Version >=1.0.3
crisu83/yiistrap Version dev-bs3
ircmaxell/random-lib Version v1.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 azamath/yii-account contains the following files

Loading the files please wait ....