mdwheele/zalgo
Generate “Zalgo” glitch text in PHP/Laravel by corrupting strings with combining diacritics. Install via Composer, create a Soul, then summon a Zalgo instance with a Mood (e.g., soothed) to make text speak with chaotic effects.
Zalgo) with static methods (make(), randomize()). Zero dependencies (beyond PHP core).@php tags or custom helpers (e.g., Str::zalgo()).Zalgo::make("hello") every time).<script> injection via Zalgo’d text).null, objects) may cause errors.composer require mdwheele/zalgo:dev-master with a fallback plan).@php echo \Zalgo::make($text); @endphp or a helper.composer require mdwheele/zalgo:dev-master.use Zalgo;
echo Zalgo::make("Hello, World!"); // Output: "H̫͇͔e̴͖l̶͖l̷͖o̴͖,̴͖ ̴͖W̴͖o̴͖r̴͖l̴͖d̴͖!"
error_reporting(E_ALL)).| Constraint | Risk Level | Mitigation |
|---|---|---|
| PHP 8.0+ | High | Test with php -v and composer validate. |
| Laravel 9/10 | Low | No direct integration; manual usage only. |
| Blade Templates | Medium | Escape output: {!! \Zalgo::make($text) !!} (XSS risk). |
| CI/CD Pipelines | Low | Add to composer.json with dev constraint. |
| Production Stability | Critical | Avoid in high-traffic areas. |
str_replace overrides).n).Cache::remember()).| Failure Scenario | Impact | Detection | Recovery |
|---|---|---|---|
| PHP version incompatibility | Runtime errors | CI/CD failures | Downgrade PHP or replace package. |
| XSS via unescaped output | Security vulnerability | Penetration testing | Input sanitization + output escaping. |
| Overuse in production | Degraded UX/accessibility | User feedback, analytics | Disable via feature flag. |
| Package abandonment | Technical debt | No new releases for 3+ years | Fork or replace in-house. |
{!! htmlspecialchars(\Zalgo::make($text), ENT_QUOTES) !!}."scripts": {
"zalgo-test": "php -r \"echo \\Zalgo::make('test');\""
}
How can I help you explore Laravel packages today?