Download the PHP package muradcade/secureauth without Composer

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

SecureAuth PHP Package

SecureAuth is a lightweight PHP package designed to simplify common web application security and authentication tasks, including validation, CSRF protection, authentication, authorization, email sending, and “remember me” functionality.


Table of Contents

  1. Installation
  2. Validation
    • Usage
    • Validation Rules
  3. BaseRepository
    • Usage
  4. Authentication
    • Usage
  5. Authorization
    • Usage
  6. Email Jobs
    • Usage
  7. RememberMe Token
    • Usage
  8. Rate Limiter
    • Database Schema
    • How It Works
    • Example Usage
  9. Environment Configuration
  10. Example Workflow
    • Login Logic
  11. SecureAuth PHP Package License

Installation

Install via Composer:

Validation

SecureAuth wraps Laravel’s validation components for simple and robust validation.

Validation Usage

Validation Rules

Rule Description
required Field must not be empty
email Must be a valid email format
min:8 Minimum 8 characters
strong_password Must include uppercase, lowercase, numbers, and symbols
verify_csrftoken Validates that the CSRF token is valid

BaseRepository

Provides database interaction using prepared statements with MySQLi.

BaseRepository Usage

Authorization

Check user login status and role-based access.

Authorization Usage

Email Jobs

Supports sending emails with or without attachments using a worker-job system.

Job Structure

Email Jobs Usage

RememberMe Token

Manages persistent login tokens stored in cookies.

RememberMe Token Usage

Environment Configuration

Rate Limiter

The Rate Limiter is responsible for preventing brute-force login attacks by limiting the number of failed login attempts a user can make within a specified timeframe. It works by storing failed attempts in a database table and checking whether the threshold has been exceeded before processing further login requests.

Database Schema

Before using the Rate Limiter, create the login_attempts table:

How It Works

  1. Store Failed Attempts : Every time a login attempt fails (invalid email or password), an entry is stored in the login_attempts table.
  2. Check Attempt Limits:Before processing a new login, the RateLimiter checks if the IP/email combination has exceeded the maximum allowed attempts in the defined interval.
  3. Block Excessive Attempts: If the limit is reached, the login is denied. The user must wait until the retry window has expired before attempting again.
  4. Reset After Success:On successful login, all attempts for that user/email are cleared.

Example Usage

Below is how you integrate the RateLimiter inside your login controller or login handler:

Example Workflow

Here’s how everything ties together in a login flow:
Login Page (index.php)

Login Logic

This file handles:

  1. Input validation
  2. CSRF token generation & validation
  3. Rate limiting
  4. User authentication
  5. Remember Me functionality

SecureAuth PHP Package License

Copyright (c) 2025 Muradcade

Permission is granted to anyone to use, copy, and distribute this software for any purpose, including personal and commercial use.

You are free to:

You are not allowed to:

The original author (Muradcade) retains the exclusive right to update and maintain the official repository.


THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT ANY WARRANTY.
USE IT AT YOUR OWN RISK. The author is not responsible for any damages, data loss, or other issues arising from the use of this software.


All versions of secureauth with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
phpmailer/phpmailer Version ^6.10
illuminate/validation Version ^12.28
illuminate/translation Version ^12.28
illuminate/container Version ^12.28
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 muradcade/secureauth contains the following files

Loading the files please wait ....