Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Security Laravel Package

salehye/laravel-security

View on GitHub
Deep Wiki
Context7
1.0.0

🎉 Initial Release

Added

  • Input Protection

    • InputSanitizerService - Automatic input sanitization
    • SanitizeInputMiddleware - Middleware for auto-sanitization
    • XSS prevention and dangerous tag removal
    • Email, URL, and integer sanitization rules
  • Threat Detection

    • ThreatDetector service
    • SQL Injection detection patterns
    • XSS detection patterns
    • Path Traversal detection
    • Command Injection detection
  • Rate Limiting

    • RateLimitService with progressive throttling
    • AdvancedRateLimitMiddleware
    • IP, user, and route-based limiting
    • Configurable decay times
  • Security Headers

    • SecurityHeadersService
    • SecurityHeadersMiddleware
    • CSP (Content Security Policy) support
    • HSTS, X-Frame-Options, X-Content-Type-Options
    • Referrer-Policy, Permissions-Policy
  • API Protection

    • ApiProtectionService
    • Request signing with HMAC
    • Timestamp verification
    • Replay attack prevention
    • API key management
  • Audit Logging

    • AuditService with multiple channels
    • Database, Log, Slack, SIEM support
    • Event-based logging
    • Automatic sensitive data redaction
  • Session Hardening

    • SessionHardeningService
    • Session fixation prevention
    • Concurrent session detection
    • Suspicious login detection
    • Re-authentication support
  • Firewall

    • FirewallService
    • IP blocking/unblocking
    • Whitelist/Blacklist support
    • Threat scoring system
  • Validation Rules

    • NoSqlInjectionRule
    • NoXssRule
    • SensitiveDataRule
    • PasswordStrengthRule
  • Models

    • BlockedIp
    • SecurityLog
    • AuditLog
    • ApiKey
  • Events

    • SuspiciousActivityDetected
    • UserBlocked
    • LoginAttemptFailed
    • RateLimitExceeded
    • SensitiveActionPerformed
  • Listeners

    • LogSuspiciousActivity
    • NotifyAdmin
    • TrackFailedLogin
    • LogRateLimitExceeded
    • RecordAuditLog
  • Console Commands

    • security:audit - Security audit command
    • security:block - Block IP address
    • security:unblock - Unblock IP address
    • security:report - Generate security report
    • security:cache:warmup - Warmup cache
    • security:clean-logs - Clean old logs
  • Traits

    • Auditable - Model audit trait
    • SecurityHelpers - Helper methods trait
  • Facades & Helpers

    • Security facade
    • 15+ helper functions
  • Documentation

    • Comprehensive README.md
    • Arabic documentation (docs/ar/README.md)
    • Usage examples (docs/USAGE.md)
    • Summary document (SUMMARY.md)
  • Testing

    • Unit tests for all services
    • Feature tests for middleware
    • PHPUnit configuration
    • Test coverage setup

Configuration

  • Full configuration file with 100+ options
  • Environment-based configuration support
  • Per-feature enable/disable toggles

Migrations

  • blocked_ips table
  • security_logs table
  • security_audit_logs table
  • security_api_keys table

Version
Version Laravel PHP
1.0.0 11.x, 12.x 8.2+

Notation:

  • Added - New features
  • Changed - Changes in existing functionality
  • Deprecated - Soon-to-be removed features
  • Removed - Removed features
  • Fixed - Bug fixes
  • Security - Security improvements
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours