Download the PHP package fbpkg/laravel-creds without Composer

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

Laravel Cred

Authentication credentials and OTP utilities for Laravel.

Requirements

Installation

Install the package via Composer:

The package service provider is automatically registered through Laravel package discovery.

Configuration

Publish the package configuration:

The configuration file will be published to:

You can customize:

Database

Publish the package migrations:

Then run the migrations:

The package uses two tables:

Both table names can be customized through config/cred.php.

SMS Configuration

If you use the sms OTP channel, you must configure the SMS gateway through fbpkg/laravel-sms.

Make sure the required SMS panel credentials and settings are configured according to the SMS package.

You must also configure the OTP SMS pattern ID in your application's .env:

The pattern configuration is available in config/cred.php:

The configured pattern must contain the variable name configured by variable so the generated OTP code can be sent correctly.

For example, with the default configuration, the SMS pattern should accept:

SMS Package Configuration

The SMS gateway itself is configured by fbpkg/laravel-sms.

For example, when using the default ippanel gateway, configure the required environment variables for that package before sending OTPs.

Refer to the fbpkg/laravel-sms documentation for the complete SMS gateway configuration.

OTP

OtpService handles OTP generation, delivery and verification.

Example:

Verify the submitted code:

The result is returned as an array containing the operation status and related information:

Possible verification statuses include:

Passwords

Add the HasPassword trait to your authenticatable model:

Set a password:

The result is returned as an array:

If the password cannot be reused according to the configured password history:

Check the current password:

This returns a boolean.

Password History

The package keeps password history and can prevent users from reusing recent passwords.

Configure these options in config/cred.php:

Cleanup

Automatic cleanup is enabled by default:

Cleanup removes old OTP records and other eligible package records during package operations.

Durations can be written using:

For example:

License

The MIT License. See the LICENSE file for details.


All versions of laravel-creds with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^11.0|^12.0|^13.0
illuminate/database Version ^11.0|^12.0|^13.0
fbpkg/laravel-support Version ^0.3.0
fbpkg/laravel-sms Version ^0.1.2
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 fbpkg/laravel-creds contains the following files

Loading the files please wait ...