codeblog.pro/geo-location-address

The package provides an entity of geographic location address.

v0.1 2020-10-06 10:06 UTC

This package is auto-updated.

Last update: 2022-11-06 19:09:13 UTC


README

Build Status Scrutinizer Code Quality Code Coverage Code Intelligence Status Total Downloads Version

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.