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

Laratext Laravel Package

edulazaro/laratext

Laratext manages Laravel translation strings by pairing key + text for readable files and stable translations. Adds @text/text() helpers, scans and updates language files, and can auto-translate missing keys via OpenAI or Google Translate across locales.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

Architecture fit: The package seamlessly extends Laravel's native localization system by building on top of existing conventions (e.g., config/texts.php, env variables). It leverages Laravel's service container for translator implementations and maintains compatibility with Blade directives and helper functions, avoiding deep framework modifications. This ensures minimal disruption to standard Laravel workflows while enhancing translation management.

Integration feasibility: High feasibility due to standardized Laravel package installation (Composer + vendor:publish), simple configuration via environment variables, and no external infrastructure dependencies beyond translation service APIs. The setup requires only basic API key configuration and language definitions, with clear documentation for common use cases.

Technical risk: Significant concerns include 0 dependents (indicating low adoption), a suspicious "last release" date of 2026-02-25 (impossible future date suggesting data inaccuracies), and potential instability from reliance on external translation APIs. The package lacks proven production usage, and unaddressed issues like JSON parsing failures in past releases (e.g., "Prevent nested JSON string" fixes) indicate fragility. Security risks exist around API key handling in .env, with no mention of secret management best practices.

Key questions:

  • What is the actual maintenance cadence given the invalid release date?
  • How does the package handle translation service outages or rate limits?
  • Are there known security vulnerabilities in API key handling?
  • How does it validate translation responses to prevent malformed data from breaking the app?
  • What is the performance impact of scanning large codebases for translation keys?

Integration Approach

Stack fit: Excellent fit for standard Laravel applications (v8+). Uses native Laravel patterns (service providers, config files, Blade directives) and integrates with common translation services via well-defined interfaces. No additional infrastructure or framework dependencies beyond Laravel core.

Migration path: Incremental adoption is feasible:

  1. Replace existing __() calls with text()/@text() in new features
  2. Run laratext:scan --write to auto-generate language files for existing keys
  3. Gradually migrate legacy code using the scan command
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
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
twbs/bootstrap4