Contributions are welcome and will be fully credited.
Please read and understand the contribution guide before creating an issue or pull request.
Check the CODE OF CONDUCT.
When requesting or submitting new features, first consider whether it might be useful to others. Open source projects are used by many developers, who may have entirely different needs to your own. Think about whether or not your feature is likely to be used by other users of the project.
Before filing an issue:
- Attempt to replicate the problem, to ensure that it wasn't a coincidental incident.
- Check the pull requests tab to ensure that the bug doesn't have a fix in progress.
- Check to make sure your feature suggestion isn't already present within the project.
- Check the pull requests tab to ensure that the feature isn't already in progress.
There are issue templates for bug reports, feature request and questions.
Before submitting a pull request:
- Check the codebase to ensure that your feature doesn't already exist.
- Check the pull requests to ensure that another person hasn't already submitted the feature or fix.
- Check the issues list an relate your PR with an existing one. If there is not any, it may be useful to file a new one.
- Create a new issue asking about implementing your feature if is not an small change.
If you don't have / want Composer and PHP installed in your local environment, you can use the configured Docker image for this.
For this, you will need to install Docker in your computer and build the image:
docker compose build
The image contains PHP 7.3, Node 16 and npm.
Then you can run
docker compose run -it app bash
and usephp
andnpm
as usual.
If you already have PHP and Node installed, you'll need:
- PHP >= 5.6 <= 7.3
- Node >= 8 <= 16
- npm >= 7
Is recommended to use nvm to manage Node versions.
Make sure to install composer and npm dependencies.
composer install
# Or
# docker compose run -it app composer install
npm install
# Or
# docker compose run -it app npm install
Run
docker compose run -it app bash
to enter interactively to the docker shell.
You can also run
First, start the pre-installed static http server:
docker compose up -d
Extract the PHP API docs:
# Each time demo files are changed
composer build:api-docs
# or
# docker compose run -it app composer build:api-docs
Build the HTML files:
# After changing any .md file (including the one generated by build:api-docs-docs)
npm run docs:build
# or
# docker compose run -it app npm run docs:build
Then, you can navigate to http://127.0.0.1:8089.
For development, auto-refreshing Vue files, use this instead:
npm run docs:dev
# or
# docker compose run -it -p 8080:8080 app npm run docs:dev
There are some aliases for docker commands under
.docker/
directory:
- php
- npm
- composer
- phpdoc
Example:
.docker/composer install