Download the PHP package bluecloud/laravel-security-question without Composer

On this page you can find all versions of the php package bluecloud/laravel-security-question. 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 laravel-security-question

Introduction

Laravel security questions helps you easily integration security question facility for your project

Installation

Migrate Tables

Run the following command to create tables to enable saving security questions

Publish Config

The package allows you to publish a config file to change settings for the package. Run the command below and select . A configuration file will be created at

Load Questions

Run the following command

Adding Trait to User

Add the trait to your model as indicated below.

Add Question(s) for User

To add question(s) for a user, add the code below

Checking Question Answer

To check a user's submitted answer against the saved answers, add the code below

Note: The questions will sync. If the question was already attached for the user, the new answer will update the existing record

Routes

To manage question, you can make use of preconfigured api endpoints

1. List Security Question

2. Create Security Question

3. Delete Security Question

Configuration

Change package settings

1. Default Questions

Navigate to and find default security questions. You may change if you please.

2. Strict Mode

By default, the package turns off. When strict mode is off, the package ignores case for the answers and removes all whitespaces and special characters to ease the matching of user submitted answers. If you want the answers to match exact case and whitespace, turn on in

3. Middleware

To protect routes, and middleware in . For example to add for authentication:

Base Routes Path

To change the base routes path for for example in change the following line

License

Laravel Sanctum is open-sourced software licensed under the MIT license.


All versions of laravel-security-question with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.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 bluecloud/laravel-security-question contains the following files

Loading the files please wait ....