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

Comments

Projects
None yet
2 participants
@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

This comment has been minimized.

Copy link
Member

andris-sevcenko commented Nov 26, 2018

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

This comment has been minimized.

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

This comment has been minimized.

Copy link
Member

andris-sevcenko commented Nov 26, 2018

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
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.