- How do I install the Laravel Bangla Text Converter package?
- Run `composer require nanopkg/laravel-bangla-text-converter` in your Laravel project. The package supports Laravel 7+ and auto-discovers the service provider, so no manual registration is needed.
- Does this package work with Laravel 10?
- The package was last updated in January 2023 and is tested with Laravel 7+. While it may work with Laravel 10, test thoroughly for compatibility, especially if using newer Laravel features.
- Can I convert mixed scripts like English + Bengali?
- The package focuses on Bengali text conversion (Unicode ↔ Bijoy). Mixed scripts may not be fully supported—test edge cases like punctuation or special characters to ensure accuracy.
- How do I convert Unicode Bengali text to Bijoy format?
- Use the facade: `BanglaTextConverter::toBijoy($unicodeText)`. For example, `toBijoy('আমার সোনার বাংলা')` converts Unicode Bengali to Bijoy encoding.
- Is this package actively maintained?
- The last release was in January 2023, and there’s no active maintenance indicated. Monitor for Laravel version conflicts or fork if critical issues arise—it’s MIT-licensed.
- Will this work with large texts (e.g., 10KB+)?
- The package is stateless and lightweight, but performance for large texts hasn’t been benchmarked. Test with your expected payloads to confirm throughput and memory usage.
- Does it support other Bengali encodings like Avro or Prokash?
- No, this package only handles Unicode ↔ Bijoy conversions. For other encodings, you’d need alternative solutions or custom logic.
- How do I test the conversion accuracy?
- Run `composer test` to execute the package’s basic tests. For edge cases, manually validate round-trip conversions (Bijoy ↔ Unicode) and mixed-script inputs.
- Are there alternatives with better support?
- Alternatives like standalone PHP libraries (e.g., `bangla-unicode-converter`) may offer broader encoding support. Evaluate based on your needs—this package is Laravel-specific.
- How do I handle HTML-embedded Bengali text (e.g., `<span>আমি</span>`)?
- The package converts raw text. For HTML, extract the Bengali text first (e.g., with DOM parsing), convert it, then reinsert. Test with your specific HTML structures.