PHPackages                             routmoute/routmoute-sirene-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. [API Development](/categories/api)
4. /
5. routmoute/routmoute-sirene-bundle

ActiveSymfony-bundle[API Development](/categories/api)

routmoute/routmoute-sirene-bundle
=================================

Bundle to use INSEE Sirene API with Symfony 6

v1.1.1(1y ago)01401MITPHP

Since Apr 28Pushed 1y ago2 watchersCompare

[ Source](https://github.com/routmoute/routmoute-sirene-bundle)[ Packagist](https://packagist.org/packages/routmoute/routmoute-sirene-bundle)[ Docs](https://github.com/routmoute/routmoute-sirene-bundle)[ RSS](/packages/routmoute-routmoute-sirene-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (6)Versions (4)Used By (0)

RoutmouteSireneBundle
=====================

[](#routmoutesirenebundle)

Bundle to use INSEE Sirene API with Symfony 6

Manual Installation
-------------------

[](#manual-installation)

Make sure Composer is installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

### Step 1: Create configuration file

[](#step-1-create-configuration-file)

Create configuration file `config/packages/routmoute_sirene.yaml` and modify scopes if you want

```
// config/packages/routmoute_sirene.yaml

routmoute_sirene:
    consumer_key: '%env(ROUTMOUTE_SIRENE_CONSUMER_KEY)%'
    consumer_secret: '%env(ROUTMOUTE_SIRENE_CONSUMER_SECRET)%'
```

Configuration
-------------

[](#configuration)

### Step 1: Create your INSEE Application

[](#step-1-create-your-insee-application)

- Go to
- Create a New Application
- Copy `consumer-key` and `consumer-secret` for next step

### Step 2: Create your env variables

[](#step-2-create-your-env-variables)

Add this environments vars in your `.env` file.

```
ROUTMOUTE_SIRENE_CONSUMER_KEY=YourConsumerKey
ROUTMOUTE_SIRENE_CONSUMER_SECRET=YourConsumerSecret

```

Usage
-----

[](#usage)

Example usage in Controller:

```
