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
Beautiful Phone

Beautiful Phone Laravel Package

andrey-helldar/beautiful-phone

Beautiful Phone is a Laravel/PHP package for formatting and displaying phone numbers cleanly. It offers convenient helpers to render readable, consistent phone output in Blade views and user interfaces, helping keep number presentation attractive and uniform across your app.

View on GitHub
Deep Wiki
Context7

Formatting a phone number in a beautiful view

Frequently asked questions about Beautiful Phone
What is andrey-helldar/beautiful-phone used for in Laravel?
Beautiful Phone is a Laravel/PHP package for formatting and displaying phone numbers in a clean, consistent view. It is intended for Blade views and user interfaces where readable phone output matters, such as profile pages, contact lists, and account screens. The package helps standardize number presentation across your application.
How do I install andrey-helldar/beautiful-phone in a Laravel app?
Install the package with Composer using the package name andrey-helldar/beautiful-phone. For Laravel-specific setup, follow the repository README for any service provider, configuration publishing, or usage steps. After installation, smoke-test a Blade view that renders a phone number before rolling it out broadly.
Which Laravel and PHP versions does Beautiful Phone support?
The provided context does not list exact Laravel or PHP version constraints for Beautiful Phone. Check the package composer.json and repository README for the supported Laravel and PHP versions before adoption. This is especially important if your application runs older or very new Laravel releases.
How do I disable phone number formatting in Beautiful Phone?
Version 2.2.0 adds the ability to disable number formatting in a beauty view. Use the documented option in the view or rendering context where you need the raw value instead of formatted output. Avoid disabling formatting in user-facing displays unless raw numbers are intentionally required.
Is Beautiful Phone's formatting opt-out global, per view, or per component?
The release notes specifically mention disabling formatting in a beauty view, which points to view-level control rather than a documented global switch. Confirm in the README whether the option is per view, per component, or configurable globally. Understand the scope before relying on it across exports, APIs, or shared UI components.
Does Beautiful Phone work with Laravel config:cache?
Beautiful Phone v2.2.0 includes an optimization for configuration access and is expected to follow standard Laravel config patterns. Test php artisan config:cache and any runtime config overrides in a non-production environment before deployment. This helps catch subtle behavior differences with cached or modified configuration.
Can I use Beautiful Phone for APIs, exports, or raw phone values?
Beautiful Phone is primarily aimed at display formatting for Blade views and UIs, while APIs and exports often need raw phone values. The v2.2.0 ability to disable formatting in a beauty view helps when that raw output is required. Verify output expectations carefully and keep raw versus formatted behavior consistent across contexts.
How should I test phone number formatting and locale behavior with Beautiful Phone?
Include automated tests for the phone number formats your application displays and the locales it supports. Cover both formatted and unformatted output, especially after enabling the formatting opt-out. Also run a config:cache test and smoke-test affected Blade views before production deployment.
What should I check before upgrading to Beautiful Phone v2.2.0?
Treat v2.2.0 as a minor upgrade with no breaking changes or migration steps indicated in the release notes. Update in a branch, run your application test suite, and smoke-test views that depend on phone formatting. Test config:cache behavior and locale-specific formatting before deploying, and keep Composer version pinning available for rollback.
What alternatives exist for phone formatting in Laravel, and how much maintenance does Beautiful Phone require?
Alternatives include dedicated phone-number parsing and formatting libraries or custom Blade helpers. Beautiful Phone is focused on clean display formatting and has a low maintenance burden for a minor release. Keep Composer lockfiles current, monitor upstream releases, and document where formatting is intentionally disabled.
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.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console