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

Email Concealer Cli Laravel Package

spatie/email-concealer-cli

CLI tool to conceal email addresses in files by replacing their domains. Ideal for sanitizing production data like MySQL dumps before using them locally, so you can share or test with realistic data without storing real addresses.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Data Privacy & Compliance: Enables masking real email addresses in production data (e.g., MySQL dumps, logs, or documentation) to comply with GDPR, HIPAA, or internal security policies before sharing or using locally.
  • Developer Experience: Accelerates onboarding by allowing engineers to work with anonymized production-like data without exposing sensitive information.
  • Security Hardening: Reduces risk of accidental data leaks by obfuscating emails in CI/CD pipelines, test environments, or shared repositories.
  • Build vs. Buy: Justifies a lightweight, open-source solution over custom scripting for email obfuscation, avoiding maintenance overhead.
  • Roadmap Alignment: Supports initiatives like "secure data sharing," "local dev environments," or "compliance automation" by integrating into existing workflows (e.g., pre-commit hooks, deployment scripts).

When to Consider This Package

  • Adopt if:
    • Your team frequently works with production data containing real emails (e.g., dumps, logs, or documentation).
    • You need a simple, CLI-based tool to replace domains (e.g., user@example.comuser@dev.example.com) without regex complexity.
    • Compliance or security teams require email obfuscation as part of data handling policies.
    • You’re already using Spatie’s Laravel ecosystem (synergy with spatie/email-concealer).
  • Look elsewhere if:
    • You need dynamic obfuscation (e.g., API-level masking) rather than file-based processing.
    • The package’s last update (2017) is a dealbreaker for long-term maintenance (consider forking or alternatives like jq/sed).
    • You require advanced patterns (e.g., partial email masking, custom replacements) beyond domain swaps.
    • Your stack isn’t PHP/Laravel (though the CLI can run standalone).

How to Pitch It (Stakeholders)

For Executives: "This tool automates email obfuscation in production data, reducing compliance risks and accelerating secure dev workflows. For example, engineers can safely share MySQL dumps or logs locally without exposing real addresses—cutting manual effort and leak risks. It’s a lightweight, open-source solution with zero dependencies, aligning with our security and efficiency goals."

For Engineering: *"Spatie’s email-concealer-cli is a 5-minute setup for masking emails in files (e.g., php artisan conceal:emails --file=production_dump.sql). It’s ideal for:

  • Pre-commit hooks: Auto-obfuscate sensitive files before pushing.
  • CI pipelines: Sanitize logs or configs before storage.
  • Local dev: Replace gmail.com with dev.example.com in Laravel’s .env or test data. No Laravel? The CLI works standalone. Tradeoff: Last updated in 2017, but the core logic is stable and trivial to extend if needed."*
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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport