thephpleague / iso3166

A PHP library providing ISO 3166-1 data.

Home Page:https://iso3166.thephpleague.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

shouldn't the main API be static?

MeerKatDev opened this issue · comments

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.

commented

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.