Download the PHP package onsefy/validate-user-laravel without Composer
On this page you can find all versions of the php package onsefy/validate-user-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download onsefy/validate-user-laravel
More information about onsefy/validate-user-laravel
Files in onsefy/validate-user-laravel
Package validate-user-laravel
Short Description Official Laravel SDK for OnSefy – Validate new users, detect fraud, and score risk automatically.
License MIT
Homepage https://github.com/onsefy/validate-user-laravel
Informations about the package validate-user-laravel
OnSefy Laravel SDK – Validate Users & Detect Fraud
Official Laravel SDK for OnSefy – Validate new users, detect fraud, and score risk automatically to stop fake signups.
🚀 Features
- AI Based Quick Intelligent Assessment in microseconds
- Easy integration with Laravel apps
- Validate users with email, phone, IP, and user-agent
- Get detailed fraud risk scoring and patterns
- Detect suspicious users
- Free and paid plan support
📦 Installation
Install the package via Composer:
Laravel 11+ will auto-discover the service provider and facade. If not, add manually to config/app.php:
⚙️ Configuration
Publish the config file:
This will create a config file at config/onsefy. Add your credentials to .env:
🧠 Usage Example
use OnSefy;
✅ Recommended Validation Flow
To effectively prevent fake signups and reduce fraud risk, follow this validation strategy:
-
Pre-validate user data
CallOnSefy::validateUser($userData)before creating or storing a new user record. -
Evaluate the response
Inspect key indicators from the response:risk_score— numerical fraud risk (0 to 10)verify_level— 0,1,2 level classification (e.g.,"0 Legit","1 Suspicious", "2 Fraud" )risk_patterns— matched signals or warnings (e.g., "x pattern", "y pattern")
- Take action based on risk score
- Strict filtering: Block or flag users with
risk_score > 1 - Loose filtering: Allow up to
risk_score <= 2, review or throttle above that
- Strict filtering: Block or flag users with
This ensures your platform stays protected while balancing user experience.
🛡️ Risk Score Reference
| Risk Level | Label | Action Suggestion |
|---|---|---|
| 0 – 1.00 | Low | Proceed |
| 1.01 – 2.50 | Suspicious | Review or challenge |
| 2.51 | Fraud | Block and Reject |
📝 License
The MIT License (MIT). See LICENSE for details.
💬 Support
👥 Author
OnSefy Stop fake signups. Detect fraud before it costs you. https://onsefy.com