dbp / relay-sublibrary-bundle
Installs: 14 202
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 0
Open Issues: 4
Type:symfony-bundle
Requires
- php: >=8.1
- ext-json: *
- ext-simplexml: *
- api-platform/core: ^3.2
- dbp/relay-base-person-bundle: ^0.2.33
- dbp/relay-core-bundle: ^0.1.186
- doctrine/collections: ^1.6 || ^2
- doctrine/common: ^3.1
- guzzlehttp/guzzle: ^7.0
- kevinrob/guzzle-cache-middleware: ^3.3 || ^4.0 || ^5.0 || ^6.0
- league/uri: ^6.4 || ^7.4
- psr/http-message: ^1.0 || ^2.0
- psr/log: ^1.1.4 || ^2.0 || ^3.0
- symfony/cache: ^6.4
- symfony/config: ^6.4
- symfony/dependency-injection: ^6.4
- symfony/framework-bundle: ^6.4
- symfony/http-foundation: ^6.4
- symfony/http-kernel: ^6.4
- symfony/security-bundle: ^6.4
- symfony/security-core: ^6.4
- symfony/yaml: ^6.4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.50
- mockery/mockery: ^1.6.7
- nelmio/cors-bundle: ^2.4.0
- phpstan/phpstan: ^2.0.0
- phpstan/phpstan-phpunit: ^2.0.0
- phpunit/phpunit: ^10.1
- symfony/browser-kit: ^6.4
- symfony/error-handler: ^6.4
- symfony/http-client: ^6.4
- symfony/monolog-bridge: ^6.4
- symfony/monolog-bundle: ^3.10
- symfony/phpunit-bridge: ^7.0.4
- symfony/twig-bundle: ^6.4
Conflicts
- symfony/web-link: <6.4.3
- dev-main
- v0.4.13
- v0.4.12
- v0.4.11
- v0.4.10
- v0.4.9
- v0.4.8
- v0.4.7
- v0.4.6
- v0.4.5
- v0.4.4
- v0.4.3
- v0.4.2
- v0.4.1
- v0.4.0
- v0.3.2
- v0.3.1
- v0.3.0
- v0.2.4
- v0.2.3
- v0.2.2
- v0.2.1
- v0.2.0
- v0.1.29
- v0.1.28
- v0.1.27
- v0.1.26
- v0.1.25
- v0.1.24
- v0.1.23
- v0.1.22
- v0.1.21
- v0.1.20
- v0.1.19
- v0.1.18
- v0.1.17
- v0.1.16
- v0.1.15
- v0.1.14
- v0.1.13
- v0.1.12
- v0.1.11
- v0.1.10
- v0.1.9
- v0.1.8
- v0.1.7
- v0.1.6
- v0.1.5
- v0.1.4
- v0.1.3
- v0.1.1
- v0.1.0
- dev-renovate/patch-all-minor-patch
- dev-renovate/lock-file-maintenance
- dev-institute-bugfix-version-2
This package is auto-updated.
Last update: 2024-12-21 10:19:01 UTC
README
GitHub | Packagist | Frontend Application
DISCLAIMER: This bundle needs a specific ALMA configuration to work. Please contact info@digital-blueprint.org for more information.
This Symfony 4.4 bundle provides API endpoints for
- assigning a call number to a book
- borrowing a book from the sublibrary
- returning a book to the sublibrary
- extending a loan period for a book
- showing sublibrary's book list
- showing sublibrary's current loans
- showing sublibrary's current book orders
for the API-Gateway.
There is a corresponding frontend application that uses this API at Sublibrary Frontend Application.
Prerequisites
- API Gateway with openAPI/Swagger
- Alma backend access with special configuration (for analytics)
Bundle installation
You can install the bundle directly from packagist.org.
composer require dbp/relay-sublibrary-bundle
Integration into the API Server
- Add the necessary bundles to your
config/bundles.php
:
... Dbp\Relay\SublibraryBundle\DbpRelaySublibraryBundle::class => ['all' => true], Dbp\Relay\CoreBundle\DbpRelayCoreBundle::class => ['all' => true], ];
- Run
composer install
to clear caches
Configuration
The bundle has configuration values that you can specify in your app, either by hardcoding it, or by referencing an environment variable.
For this create config/packages/dbp_relay_sublibrary.yaml
in the app with the following
content:
dbp_relay_sublibrary: api_url: '%env(ALMA_API_URL)%' api_key: '%env(ALMA_API_KEY)%' analytics_api_key: '%env(ALMA_ANALYTICS_API_KEY)%' readonly: '%env(bool:ALMA_READONLY)%'
Your .env
file should then contain the following environment variables you need to configure the bundle:
###> dbp/relay-sublibrary-bundle ### ALMA_API_URL=https://api-eu.hosted.exlibrisgroup.com/almaws/v1 ALMA_API_KEY= ALMA_ANALYTICS_API_KEY= ALMA_READONLY= ###< dbp/relay-sublibrary-bundle ###
If you were using the DBP API Server Template as template for your Symfony application, then the configuration files should have already been generated for you.
For more info on bundle configuration see https://symfony.com/doc/current/bundles/configuration.html.