Download the PHP package nycorp/lang-helper without Composer
On this page you can find all versions of the php package nycorp/lang-helper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nycorp/lang-helper
More information about nycorp/lang-helper
Files in nycorp/lang-helper
Package lang-helper
Short Description Simple, structured and intuitive language helper generator for Laravel projects.
License MIT
Homepage https://github.com/nycorp/lang-helper
Informations about the package lang-helper
LangHelper Generator for Laravel
Simple, structured and intuitive language helper generator for Laravel projects.
✨ Features
- 📁 Group by folders: Auto-organize translation keys into structured classes.
- 💡 Intuitive access: Access translations like
LangHelper::auth()->password()->reset()
. - 🔄 Nested keys support: Full nested language file support.
- ❌ No language selection required: Automatically calls the default
__('auth.password.reset')
function. - ✏️ Detect unused lang file: Easily find and clean unused translation entries.
Installation
You can install the package via composer:
⚙️ Usage
1. Generate LangHelper
This will create the app/Helpers/LangHelper.php
and related group folders.
2. Detect Unused Translations
This will list all unused translation methods.
3. Example Usage
non existing file will generate
You can publish the config file with:
This is the contents of the published config file:
📊 Potential Updates
- [ ] Fail safety like __()
- [ ] Verify usage on all key branch
- [ ] Auto-generate on file save (watch mode)
- [ ] Add support for parameter placeholders
- [ ] Blade components integration
- [ ] Make group namespaces configurable
🚀 Contributing
We welcome contributions! ✨
- Fork this repository
- Create a feature branch (
git checkout -b feature/my-feature
) - Commit your changes
- Push your branch (
git push origin feature/my-feature
) - Open a pull request!
We recommend clean, readable code and simple commit messages.
🙏 Thanks
This project was initially developed during a real-world Shortext need to simplify multilingual management in Laravel apps.
Enjoy! 🚀
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Yann Yvan
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Made with ❤️ for Laravel developers.
All versions of lang-helper with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^10.0||^11.0||^12.0