PHPackages                             dbp/relay-base-course-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. dbp/relay-base-course-bundle

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

dbp/relay-base-course-bundle
============================

v0.2.19(2mo ago)018.5k↑63.6%[1 issues](https://github.com/digital-blueprint/relay-base-course-bundle/issues)1AGPL-3.0-or-laterPHPPHP &gt;=8.2CI passing

Since May 4Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/digital-blueprint/relay-base-course-bundle)[ Packagist](https://packagist.org/packages/dbp/relay-base-course-bundle)[ RSS](/packages/dbp-relay-base-course-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (46)Versions (28)Used By (1)

DbpRelayBaseCourseBundle
========================

[](#dbprelaybasecoursebundle)

[GitHub](https://github.com/digital-blueprint/relay-base-course-bundle) | [Packagist](https://packagist.org/packages/dbp/relay-base-course-bundle)

[![Test](https://github.com/digital-blueprint/relay-base-course-bundle/actions/workflows/test.yml/badge.svg)](https://github.com/digital-blueprint/relay-base-course-bundle/actions/workflows/test.yml)

Base Symfony bundle for courses for the DBP Relay API Server.

Integration into the Relay API Server
-------------------------------------

[](#integration-into-the-relay-api-server)

- Add the bundle package as a dependency:

```
composer require dbp/relay-base-course-bundle
```

- Add the bundle to your `config/bundles.php`:

```
...
Dbp\Relay\BasePersonBundle\DbpRelayBaseCourseBundle::class => ['all' => true],
...
];
```

- Run `composer install` to clear caches

Course provider implementation
------------------------------

[](#course-provider-implementation)

For this bundle to work you need to add a service that implements the [CourseProviderInterface](https://github.com/digital-blueprint/relay-base-course-bundle/-/blob/main/src/API/CourseProviderInterface.php)to your application.

### Example

[](#example)

#### Service class

[](#service-class)

For example, create a service `src/Service/CourseProvider.php`:

```
