eyecatchup / SEOstats

SEOstats is a powerful open source PHP library to request a bunch of SEO relevant metrics.
MIT License
1.47k stars 387 forks source link

#98 Allow Using DotEnv for ApiKeys #131

Closed mhammerschmidt closed 8 years ago

mhammerschmidt commented 8 years ago

In order to be able to store configuration for a project without touching the code inside vendor we added the dotenv dependency and fetch the keys from the ENV if existing.

The configuration constants can still be used.

barryvdh commented 7 years ago

env() is not a function from dotenv, it's a helper from Laravel (I assume that is what you are using?)

You could use getenv() if you want to use it without Laravel.

fnagel commented 7 years ago

Some documentation would be nice.

fnagel commented 7 years ago

Current master is broken for non Laravel users. Please fix this!