jamesmills / laravel-timezone

Enable user Timezones in your application.
MIT License
675 stars 89 forks source link

Replace the geoip with a better-maintained package #91

Closed grantholle closed 1 year ago

grantholle commented 1 year ago

When doing some Laravel 10 upgrades, the bottleneck for me right now is torann/laravel-geoip (after changing my composer's minimum-stability back to dev to get past #90). It seems minimally maintained.

Would it be worth switching to something like stevebauman/location. Steve is an amazing open source champion who maintains his packages very well.

I'd be happy to try and make the switch if you're up to it.

grantholle commented 1 year ago

I began to start the PR, but decided that I was going to make too many breaking changes. I created my own package, grantholle/laravel-timezone, that only supports more modern Laravel and PHP versions. It also has different conventions and API.

If you're open to making breaking changes, then I can submit a PR. For now I'll close this issue.

jamesmills commented 1 year ago

Hi @grantholle

During my walk this morning I was thinking that I was going to tidy this package up and release a new breaking change version. This package is old now but has a lot of people using it. I think tidying it up and bringing some of the newer stuff to it makes sense.

I'll take a look at your clone.

James

jamesmills commented 1 year ago

First of all, I'm loving stevebauman/location. Looks really nice and well-maintained.

Secondly, you've now given me a huge conundrum. Your package is extremely well written and has cut out a lot of the stuff I was thinking of cutting out if I ever got time to release a new version.

I may abandon mine and link to yours.

jamesautodude commented 1 year ago

I began to start the PR, but decided that I was going to make too many breaking changes. I created my own package, grantholle/laravel-timezone, that only supports more modern Laravel and PHP versions. It also has different conventions and API.

If you're open to making breaking changes, then I can submit a PR. For now I'll close this issue.

Thank you sir. This was the last package I think I need to upgrade to laravel 10, and I use the timezone package very heavily so I can't just get rid of it. I'll use yours if that's okay with you, at least for now as I really wanted to upgrade ASAP. Thanks for your hard work!

grantholle commented 1 year ago

I also rely heavily on this package, so I was motivated to find a solution. I'm fine with maintaining my package should you choose to abandon this one, or borrowing some for a new version. I appreciate your words of encouragement.

usernotnull commented 1 year ago

If the plan is to move away from this package, kindly let us know ASAP since everyone is already doing the upgrading work of Laravel 10 :) I noticed there wouldn't be any other changes to the code than minor renaming when switching packages.

jamesmills commented 1 year ago

Nothing confirmed at this point. Too many people using this out in the wild to just abandon it.

jamesautodude commented 1 year ago

Nothing confirmed at this point. Too many people using this out in the wild to just abandon it.

So I guess if we want to upgrade to laravel 10 now, we should just use the package by @grantholle ?

jamesmills commented 1 year ago

If you’re already using this you should be ok upgrading to L10 using the latest tagged version of this package.

If you want a simplified and better written package then you can switch but it won’t support everything this one’s does for now.

Depends what you wanna do!

jamesautodude commented 1 year ago

If you’re already using this you should be ok upgrading to L10 using the latest tagged version of this package.

If you want a simplified and better written package then you can switch but it won’t support everything this one’s does for now.

Depends what you wanna do!

Interesting. I tried using your package and it still gives me errors :/ I'll try again tomorrow. Thanks!

jamesmills commented 1 year ago

I also rely heavily on this package, so I was motivated to find a solution. I'm fine with maintaining my package should you choose to abandon this one, or borrowing some for a new version. I appreciate your words of encouragement.

It would be nice to mix some of your stuff into a newer version of my current package if I’m perfectly honest with you.

People can continue to used previously tagged versions or they could upgrade/update and use a newer version of you’d be willing to PR some stuff.

I could add you as a maintainer?

grantholle commented 1 year ago

Yeah sounds good.

grantholle commented 1 year ago

Created #93