Download the PHP package krubio/perfect-authentication without Composer
On this page you can find all versions of the php package krubio/perfect-authentication. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download krubio/perfect-authentication
More information about krubio/perfect-authentication
Files in krubio/perfect-authentication
Download krubio/perfect-authentication
More information about krubio/perfect-authentication
Files in krubio/perfect-authentication
Vendor krubio
Package perfect-authentication
Short Description Standalone authentication library with password hashing and verification
License MIT
Package perfect-authentication
Short Description Standalone authentication library with password hashing and verification
License MIT
Please rate this library. Is it a good library?
Informations about the package perfect-authentication
Perfect Authentication
A lightweight, standalone PHP authentication library focused on secure password hashing and verification. Zero dependencies, 100% test coverage, and PHP 8.1+ compatible.
Features
- 🔐 Secure Password Hashing using PHP's built-in
password_hash()functions - ✅ 100% Test Coverage with PHPUnit 12
- 📊 PHPStan Level 10 - Maximum static analysis quality
- 🚀 Zero Dependencies - Pure PHP implementation
- 🎯 PHP 8.3+ with strict types and modern features
- 🔧 Flexible Algorithm Support (BCRYPT, ARGON2I, ARGON2ID)
- 🛡️ Exception-Based Error Handling for robust security
- 📦 PSR-4 Compliant
Installation
Requirements
- PHP 8.3 or higher
- PHP password hashing functions (enabled by default)
Quick Start
Basic Password Operations
Database Integration
API Reference
PasswordHasher
AuthenticationService
Supported Algorithms
- PASSWORD_DEFAULT (Recommended)
- PASSWORD_BCRYPT
- PASSWORD_ARGON2I
- PASSWORD_ARGON2ID
Error Handling
Testing
Run tests with coverage
Generate HTML coverage report
Security Best Practices
- Always use the latest algorithm (PASSWORD_DEFAULT)
- Let passwords be rehashed automatically when algorithms improve
- Never store plain text passwords
- Use proper error handling with exceptions
- Validate input before hashing
Contributing
- Fork the repository
- Create a feature branch: git checkout -b feature/new-feature
- Add tests for your changes
- Ensure all tests pass: composer test
- Submit a pull request
License
MIT License. See LICENSE file for details.
Support
- Create an issue on GitHub
- Ensure you include PHP version and error details
- Provide reproducible test cases
Changelog
v0.1.0
- Initial release
- Complete test coverage
- Zero dependencies
- PHP 8.3+ support
Perfect Authentication - Simple, secure authentication for modern PHP applications.
All versions of perfect-authentication with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.3
ext-pdo Version *
ext-pdo Version *
The package krubio/perfect-authentication contains the following files
Loading the files please wait ...