alcohol / iso3166

A PHP library providing ISO 3166-1 data.
https://iso3166.thephpleague.com
MIT License
640 stars 59 forks source link

shouldn't the main API be static? #66

Open MeerKatDev opened 2 years ago

MeerKatDev commented 2 years ago

In most use cases the call is used once, why isn't the library making static calls? Like ISO3166::alpha2(..). Creating an object every time seems quite cumbersome.

alcohol commented 2 years ago

With DI being so mainstream, injecting the same instance everywhere hardly seems cumbersome to me. But to be fair, there is no real argument against making everything static.