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

Call to undefined function env() #141

Open
onkar-glocify opened this issue Jan 17, 2023 · 6 comments
Open

Call to undefined function env() #141

onkar-glocify opened this issue Jan 17, 2023 · 6 comments

Comments

@onkar-glocify
Copy link

@gnikyt
Try to use the package but ends with the error Call to undefined function env().
No description regarding it in the code or any file.
Screenshot_3

@onkar-glocify
Copy link
Author

using this peace of code from readme.md file
image

@jaiwalker
Copy link

You should replace " env('shopify_api_key') and env('shopify_api_secret')" with actual values

@onkar-glocify
Copy link
Author

You should replace " env('shopify_api_key') and env('shopify_api_secret')" with actual values

The question is regarding the undefined function name env, not the values, I think you missed it while answering.

@jaiwalker
Copy link

Are you using this in a framework like Laravel or plain old php

@onkar-glocify
Copy link
Author

Are you using this in a framework like Laravel or plain old php

using it with core PHP

@jaiwalker
Copy link

sorry for late reply env function is part of "https://packagist.org/packages/symfony/dotenv"
but you can choose not to use this at all instead replace "env('shopify_api_secret')" with actual secret

eg this is how it would look

$options->setApiKey('YOURAPIKEY');

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

No branches or pull requests

2 participants