Download the PHP package smart-dato/non-solo-cap without Composer
On this page you can find all versions of the php package smart-dato/non-solo-cap. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download smart-dato/non-solo-cap
More information about smart-dato/non-solo-cap
Files in smart-dato/non-solo-cap
Package non-solo-cap
Short Description A set of tools to make working with https://www.nonsolocap.it/ easier in Laravel
License MIT
Informations about the package non-solo-cap
NonSoloCap
A small Laravel helper that checks whether an Italian postal code (CAP) exists, using NonSoloCap. All data belongs to NonSoloCap, which offers far more than this package uses and has one of the best databases of Italian postal codes.
Requirements
- PHP 8.2+
- Laravel 8 – 13
Installation
The service provider and the NonSoloCap facade alias are registered automatically.
Usage
validZipcode() queries nonsolocap.it and returns false when the site reports no results. It makes a live HTTP request each time and throws a Guzzle exception if the site cannot be reached, so cache the result if you check the same codes often.
generateUrl() only builds a link to the site's search page for a postal code and/or place name; it makes no request.
Testing
The validation test calls nonsolocap.it, so it needs network access.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- SmartDato
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of non-solo-cap with dependencies
guzzlehttp/guzzle Version ^7.5
illuminate/support Version ^8.0|^9.0|^10.0|^11.0|^12.0|^13.0