Coder Social home page Coder Social logo

langleyfoxall / php-simple-google-maps Goto Github PK

View Code? Open in Web Editor NEW
2.0 6.0 3.0 73 KB

This package provides a simple PHP client for various Google Maps APIs.

Home Page: https://packagist.org/packages/langleyfoxall/simple-google-maps

License: GNU Lesser General Public License v3.0

PHP 100.00%
google-maps google-map-api php-library geocoding reverse-geocoding latitude-and-longitude

php-simple-google-maps's People

Contributors

divineomega avatar jameswilddev avatar kirsty-gasston avatar kirstyg avatar lfnicklangley avatar warren-cb avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

divineomega dheia

php-simple-google-maps's Issues

Add unit tests

Units tests are required to ensure code functions as expected.

Add additional methods to mutate time & distance

It would be very convenient if you could mutate the time that is calculated, without needing to perform additional processing of the data outside of the package.

Time

If we use the demo as an example, it currently returns the information in seconds. What I propose would do the following.

$journey->duration()->toMinutes()

This would then return, for example, 5 mins. Additional options would also be really handy, e.g. toHours().

Distance

Something similar could also be done to the distance.

$journey->distance()->toMiles()

Needs Laravel 7 support

This package blocks installation for Laravel 7 projects:

langleyfoxall/simple-google-maps v1.0.0 requires laravel/framework ^5.1||^6.0 -> satisfiable by laravel/framework[5.1.x-dev, 5.2.x-dev, 5.3.x-dev, 5.4.x-dev, 5.5.x-dev, 5.6.x-dev, 5.7.x-dev, 5.8.x-dev, 6.x-dev].

This may be as simple as adding ^7.0 to composer.json, but I don't currently have time to test it.

Laravel 8 compatibility

This package is locked to guzzle v 6.x -- Laravel 8 now uses 7.x; there are breaking changes as listed here.

It's also worth noting that guzzle 7.x removes PHP 5 support, and more importantly sets the minimum PHP version to 7.2 -- I have seen dependent packages (laravel-addresses for one) that have the minimum set to 7.1, so upgrading could cause breaking changes for legacy software running on PHP 7.1.

I will look further into this when I get the chance, but I've raised this issue so that it doesn't get forgotten and to welcome input from you other devs.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.