Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add posability for dynamic configuration #112

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

NikolayMurha
Copy link

Usage:

use SEOstats\Config\ApiKeys;

ApiKeys::configure([
    'MOZSCAPE_ACCESS_ID' => '<MOZSCAPE ACCESS ID>',
    'MOZSCAPE_SECRET_KEY' => '<MOZSCAPE SECRET KEY>',
]);

Or:

ApiKeys::set('MOZSCAPE_ACCESS_ID', '<MOZSCAPE ACCESS ID>');
ApiKeys::set('MOZSCAPE_SECRET_KEY', '<MOZSCAPE SECRET KEY>');

@prionkor
Copy link

+1 Not only api keys but also other configuration settings too. For example setting user-agent, proxy or other curl parameters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants