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

PHP documentation #582

Closed
TheFox opened this issue Nov 23, 2018 · 3 comments
Closed

PHP documentation #582

TheFox opened this issue Nov 23, 2018 · 3 comments

Comments

@TheFox
Copy link

TheFox commented Nov 23, 2018

Where do I find the PHP documentation, examples, best practices? It seems there is a lack of PHP documentation for this project. I don't mean the PHP API to classes or functions rather than code examples, how to achieve something.

For example here: https://docs.craftcms.com/commerce/v2/making-payments.html

This is the documentation for the frontend, but where do I find the corresponding documentation doing the same using PHP?

@andris-sevcenko
Copy link
Contributor

This is a plugin for Craft CMS, not a stand-alone PHP package. You wouldn't need to write any PHP to use it.

@TheFox
Copy link
Author

TheFox commented Nov 26, 2018

@andris-sevcenko But I have to use PHP, because I write a Craft module. So there is no documentation?

What do you mean by

not a stand-alone PHP package

?

craftcms/commerce is a separate package, so?

@andris-sevcenko
Copy link
Contributor

Right, I was not sure you were using it for Craft.

As a rule of thumb, if you want to interact with Commerce, you should be using the Service classes provided by Commerce, so the class reference is actually a good place to go to.

For more specific tips on how to accomplish certain things, Craft Slack or Stack Exchange would probably be your best bet: https://craftcms.com/community

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