Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants