Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Relay Checkin Bundle Laravel Package

dbp/relay-checkin-bundle

View on GitHub
Deep Wiki
Context7

Overview

Source: https://github.com/digital-blueprint/relay-checkin-bundle

This bundle handles check-ins to places and contact tracing for warning about COVID-19 cases.

You will need to install and set up the Digital Blueprint fork of CampusQR, the open source system for contact tracing at universities.

See Check-in Website for more information.

There is a corresponding frontend application that uses this API at Check-in Frontend Application.

graph TD
    style checkin_bundle fill:#606096,color:#fff

    campusqr("Campus QR")

    subgraph API Gateway
        api(("API"))
        core_bundle("Core Bundle")
        checkin_bundle("Checkin Bundle")
    end

    api --> core_bundle
    api --> checkin_bundle
    checkin_bundle --> core_bundle
    checkin_bundle --> campusqr

Bundle Configuration

Created via ./bin/console config:dump-reference DbpRelayCheckinBundle | sed '/^$/d'

# Default configuration for "DbpRelayCheckinBundle"
dbp_relay_checkin:
  campus_qr_url:        ~
  campus_qr_token:      ~
  authorization:
    policies:             []
    roles:
      # Returns true if the user is allowed to check in.
      ROLE_LOCATION_CHECK_IN: 'false'
      # Returns true if the user is allowed to check in guests.
      ROLE_LOCATION_CHECK_IN_GUEST: 'false'
    resource_permissions: []
    attributes:           []

The bundle has a campus_qr_url and a campus_qr_token configuration value that you can specify in your app, either by hardcoding it, or by referencing an environment variable.

For this create config/packages/dbp_relay_checkin.yaml in the app with the following content:

dbp_relay_checkin:
  campus_qr_url: 'https://campusqr.your.domain'
  campus_qr_token: 'secret token'
  authorization:
    roles:
      ROLE_LOCATION_CHECK_IN: 'user.isAuthenticated()'
      ROLE_LOCATION_CHECK_IN_GUEST: 'false'

Roles:

  • ROLE_LOCATION_CHECK_IN - needs to evaluate to true for the user to be allowed to check in
  • ROLE_LOCATION_CHECK_IN_GUEST - needs to evaluate to true for the user to be allowed to check in guests. Also requires ROLE_LOCATION_CHECK_IN.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
bugban/symfony
beyonder-capi/workflow-extensions-bundle
beyonder-capi/job-queue-bundle
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin