Download the PHP package nuwira/bandrek without Composer

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

Bandrek

Build Status Total Download Latest Stable Version

Bandrek is local word in Javanese that means a lock pick. We use lock pick to open a padlock if the key is lost.

Bandrek replaces Laravel's password recovery manager to provide code and token when requesting password recovery. This code can be used as token replacement if you are using REST-API to reset password without visiting web interface.

Bandrek generate 6 random numeric character as code. Bandrek is also creating 64 characters token that can be used in normal web page interface.

The scenario is when user request password recovery via REST-API, the user can send the credentials (e-mail and password) and the easy readable code to reset the password.

Installation

Bandrek only supports Laravel 5.4 and above. To install using Composer, just run this command below.

Configuration

Config File

After installed, open config/app.php and find this line.

Comment or remove it and add that line to override Laravel's password reset handling.

Add Facade

This is optional. To add Facade, add config/app.php in the aliases section.

If Facade is loaded, you can call these functions

Model File

To be able to send reset password instruction e-mail, open app/User.php (the user model file) and find this line.

Replace that line with this.

Using Custom Notification

Bandrek by default is using e-mail for notification. You can add or replace using your preferred method by extending abstract class Nuwira\Bandrek\Notification\BandrekNotification. The token and code are available in $this->code and $this->token in the notification class.

For example, if you want to send the code using Gammu SMS notification, just install and configure it.

To use SMS and e-mail for code sending, add function in your model that extends Nuwira\Bandrek\Auth\User and inject the notification.

Notification File: App\Notifications\ResetPassword.php

Model File: App\User.php

License

The MIT License (MIT). Please see License File for more information.


All versions of bandrek with dependencies

PHP Build Version
Package Version
Requires laravel/framework Version ~5.4
hashids/hashids Version ^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 nuwira/bandrek contains the following files

Loading the files please wait ....