https://github.com/itk-dev/os2forms_sync
https://github.com/itk-dev/os2forms_sync
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/itk-dev/os2forms_sync
- Owner: itk-dev
- License: mit
- Created: 2023-01-16T11:34:10.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-14T11:23:28.000Z (about 1 year ago)
- Last Synced: 2025-03-14T13:18:25.796Z (about 1 year ago)
- Language: PHP
- Size: 59.6 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# OS2Forms sync
## Installation
```sh
composer require os2forms/os2forms_sync
drush pm:enable os2forms_sync
```
Edit settings on `/admin/os2forms_sync/settings`.
## API
See [API](docs/API.md) for details on the API.
## Usage
Publish a webform by checking “Publish” under webform setting » Third party
settings » OS2Forms » OS2Forms sync
All published webforms are listed on `/admin/os2forms/sync/webform` (API data on
`/os2forms/sync/jsonapi/webform`).
Webforms available for import are listed on `/admin/os2forms/sync/webform`.
## Drush commands
```sh
drush os2forms-sync:import --help
```
## Coding standards
```sh
docker run --rm --interactive --tty --volume ${PWD}:/app itkdev/php8.1-fpm:latest composer install
docker run --rm --interactive --tty --volume ${PWD}:/app itkdev/php8.1-fpm:latest composer coding-standards-check
docker run --rm --interactive --tty --volume ${PWD}:/app node:18 yarn --cwd /app install
docker run --rm --interactive --tty --volume ${PWD}:/app node:18 yarn --cwd /app coding-standards-check
```
## Code analysis
```sh
docker run --rm --interactive --tty --volume ${PWD}:/app itkdev/php8.1-fpm:latest composer install
docker run --rm --interactive --tty --volume ${PWD}:/app itkdev/php8.1-fpm:latest composer code-analysis
```