PHPackages                             dbp/relay-base-organization-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-organization-bundle

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

dbp/relay-base-organization-bundle
==================================

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

Since Aug 28Pushed 1mo ago3 watchersCompare

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

READMEChangelogDependencies (42)Versions (36)Used By (4)

DbpRelayBaseOrganizationBundle
==============================

[](#dbprelaybaseorganizationbundle)

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

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

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

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

- Add the bundle package as a dependency:

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

```

- Add the bundle to your `config/bundles.php` in front of `DbpRelayCoreBundle`:

```
...
Dbp\Relay\BaseOrganizationBundle\DbpRelayBaseOrganizationBundle::class => ['all' => true],
Dbp\Relay\CoreBundle\DbpRelayCoreBundle => ['all' => true],
];
```

- Run `composer install` to clear caches

OrganizationProvider service
----------------------------

[](#organizationprovider-service)

For services that need to fetch organizations you need to create a service that implements [OrganizationProviderInterface](https://github.com/digital-blueprint/relay-base-organization-bundle/blob/main/src/API/OrganizationProviderInterface.php)in your application.

### Example

[](#example)

#### Service class

[](#service-class)

You can for example put below code into `src/Service/OrganizationProvider.php`:

```
