Weave 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
Symfony Number To Words

Symfony Number To Words Laravel Package

phpviet/symfony-number-to-words

Symfony bundle from phpviet that converts numbers into Vietnamese words for invoices, receipts, and legal documents. Offers a service and Twig filter to spell out amounts with currency support and configurable settings, giving Symfony apps simple, reliable number-to-text output.

View on GitHub
Deep Wiki
Context7

:boom: Bundle hổ trợ tích hợp chuyển đổi số sang chữ số dành riêng cho Symfony framework.

Frequently asked questions about Symfony Number To Words
Does phpviet/symfony-number-to-words work with Laravel?
No, this package is a Symfony bundle, not a Laravel package. It registers Symfony service definitions and is intended for Symfony applications. For Laravel, use the underlying PHPViet Number to Words library directly or wire it into Laravel's service container manually.
How do I install phpviet/symfony-number-to-words?
Install it with Composer and register or enable the bundle in your Symfony application. Then configure the bundle as needed and inject the converter service where required. Check the repository README for exact bundle registration steps and supported Symfony version constraints.
How do I convert a number to Vietnamese words in Symfony?
Inject the converter service provided by the bundle into your controller, service, or command. Call the conversion method on that service instead of manually instantiating the PHPViet library. The README shows the exact service and method names for your version.
Can I use a Twig filter to spell out amounts?
Yes, the package provides a Twig filter for number-to-words output, including currency support. This is useful for rendering invoice totals, receipts, and payment confirmations directly in templates. Check the README for the exact filter name and accepted arguments.
Does it support Vietnamese currency amounts such as VND?
The bundle is focused on converting numbers into Vietnamese words and mentions currency support in its Twig filter. Verify the available currency options and configuration settings in the README before relying on it for VND formatting. It is suited to invoice totals and payment confirmations when configured correctly.
How is the Symfony bundle configured?
The bundle provides simple configuration and autowiring-friendly service definitions. You configure it through standard Symfony bundle configuration rather than manual service wiring. Exact configuration keys and defaults depend on the package version, so consult the README.
Is it suitable for invoices and legal documents?
It is designed to generate readable Vietnamese words for numeric amounts, which fits invoices, receipts, payment confirmations, and legal documents. You should still validate the output against your locale, rounding, and currency requirements. Use the converter service or Twig filter consistently across documents.
What are alternatives to this Symfony bundle?
You can use the core phpviet/number-to-words library directly if you do not need Symfony bundle integration. Other options include alternative Vietnamese number-to-words packages or custom formatting logic. This bundle mainly saves time by providing Symfony services and a Twig filter.
How do I test number-to-words output in my Symfony app?
Inject the converter service into your tests or mock it in services that depend on it. Use Symfony's standard test container to assert expected Vietnamese strings for sample amounts. No special testing utilities are documented, so normal unit and integration testing applies.
Is phpviet/symfony-number-to-words maintained and which Symfony versions are supported?
Check the GitHub repository and Composer metadata for the latest release, activity, and Symfony version constraints. The README and composer.json are the source of truth for compatibility. Do not assume support for a Symfony version without verifying its constraints.
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.
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect
youbar/easy-crud
c-point-labs/laravel-hostyourai
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo