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 playground to website #62

Open
MonsieurV opened this issue Sep 29, 2021 · 2 comments
Open

Add playground to website #62

MonsieurV opened this issue Sep 29, 2021 · 2 comments

Comments

@MonsieurV
Copy link
Collaborator

We could add a playground tab to the website, so users can easily try the functions.

For eg. we could try to embed this (which allows to loads BottomLine with Composer): https://phpsandbox.io/n/royal-resonance-w7nm-mt2lx

@MonsieurV
Copy link
Collaborator Author

We could even create the playground on the fly with the CLI (will requires a login tough, and to parse the output to get the sandbox link)

https://docs.phpsandbox.io/phpsandbox-cli/cli.html#export-command

@maciejczyzewski
Copy link
Owner

maciejczyzewski commented Sep 29, 2021

It's an excellent idea. Having a sandbox would be incredibly useful in:

  1. README.md: to introduce the project to new users and provide a short code example of how to use it.
  2. docs: each example in the documentation? Perhaps by generating tons of links to prepared environments.

edit: maybe some crazy "github actions" workflow?
for example, we could register an account for bottomline at phpsandbox.io; get the token and put psb login --token=${{secrets.PSB_TOKEN}} in workflow (that is performed only on tag/release to generate docs)

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

No branches or pull requests

2 participants