codeblog.pro / geo-location-address
The package provides an entity of geographic location address.
v0.1
2020-10-06 10:06 UTC
Requires
- php: >=7.4
- codeblog.pro/geo-coordinates: ^1.0
Requires (Dev)
- nunomaduro/phpinsights: ^1.14
- phpstan/phpstan: ^0.12.47
- phpunit/php-code-coverage: ^8.0
- phpunit/phpunit: ^9.0.0
- squizlabs/php_codesniffer: ^3.0
This package is auto-updated.
Last update: 2024-11-06 23:52:32 UTC
README
The package provides an entity of geographic location address. It can be used both independently and as part of other packages.
Install
Via Composer
$ composer require codeblog.pro/geo-location-address
Usage
$location = new Location( new Coordinates(55.75, 37.61), new Country('Czechia', 'CZE'), new Region('New Jersey', 'US-NJ'), 'Velka Ohrada', 'Wall Street', '10005' ); echo $location->getAddressString(); echo $location->toArray();
Testing
$ composer test
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email panov@codeblog.pro instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.