https://github.com/itk-dev/os2forms_organisation
os2forms_organisation
https://github.com/itk-dev/os2forms_organisation
Last synced: about 1 month ago
JSON representation
os2forms_organisation
- Host: GitHub
- URL: https://github.com/itk-dev/os2forms_organisation
- Owner: itk-dev
- License: mit
- Created: 2023-02-03T09:04:38.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-28T11:14:21.000Z (about 1 year ago)
- Last Synced: 2025-10-23T22:07:00.988Z (5 months ago)
- Language: PHP
- Size: 144 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# OS2Forms organisation
## Installation
```sh
composer require os2forms/os2forms_organisation
drush pm:enable os2forms_organisation
```
Configure organisation API endpoint on `/admin/os2forms_organisation/settings`.
**NOTE** This module creates and uses a user field called `field_organisation_user_id`.
It is up to the using party to ensure this field is set to the
[SF1500](https://digitaliseringskataloget.dk/integration/sf1500)
organisation "bruger" ID. If it is not, nothing is displayed.
Consider using [OS2Forms Organisation OpenID Connect](modules/os2forms_organisation_openid_connect/README.md)
for setting this user field if using OpenID Connect.
## Drush commands
```sh
drush os2forms_organisation:lookup --help
```
## Coding standards
```sh
docker run --rm --interactive --tty --volume ${PWD}:/app itkdev/php8.3-fpm:latest composer install
docker run --rm --interactive --tty --volume ${PWD}:/app itkdev/php8.3-fpm:latest composer coding-standards-check
docker run --rm --interactive --tty --volume ${PWD}:/app node:20 yarn --cwd /app install
docker run --rm --interactive --tty --volume ${PWD}:/app node:20 yarn --cwd /app coding-standards-check
```
## Code analysis
```sh
docker run --rm --interactive --tty --volume ${PWD}:/app itkdev/php8.3-fpm:latest composer install
docker run --rm --interactive --tty --volume ${PWD}:/app itkdev/php8.3-fpm:latest composer code-analysis
```