PHPackages                             ventureleap/leap-one-symfony-sdk - 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. ventureleap/leap-one-symfony-sdk

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

ventureleap/leap-one-symfony-sdk
================================

Venture Leap Symfony SDK - connect to Leap.ONE APIs and authenticate easily

2.0.x-dev(4y ago)09.2kPHP

Since Feb 10Pushed 4y ago3 watchersCompare

[ Source](https://github.com/ventureleap/leap-one-symfony-sdk)[ Packagist](https://packagist.org/packages/ventureleap/leap-one-symfony-sdk)[ RSS](/packages/ventureleap-leap-one-symfony-sdk/feed)WikiDiscussions main Synced 3d ago

READMEChangelogDependencies (8)Versions (11)Used By (0)

LEAP.one SYMFONY PHP SDK
========================

[](#leapone-symfony-php-sdk)

To easy up development in Symfony with the help of leap.one PHP SDK

Installation
------------

[](#installation)

1. Require the bundle via:

```
composer require ventureleap/leap-one-symfony-sdk dev-main
```

2. Add the following variables to your .env.local:

```
LEAP_ONE_ENDPOINT_URL='https://api-test.leap1.de:8000'
LEAP_ONE_APP_ID=''
LEAP_ONE_APP_SECRET=''

```

3. (optional) Add the routes

```
    leap_one_php_sdk:
        resource: "@LeapOneSymfonySdkBundle/Resources/config/routes.yaml"
        prefix:   /
```

4. (optional) Modify your security config file This part requires that you already implemented the logic for using users from the LEAP.one User Service.

```
        encoders:
            VentureLeap\LeapOneSymfony\Model\User\User:
                algorithm: auto
        providers:
           user_provider:
              id: leap_one.user_provider
        firewalls:
            dev:
                pattern: ^/(_(profiler|wdt)|css|images|js)/
                security: false
            main:
                pattern: /
                anonymous: true
                lazy: true
                provider: user_provider
                guard:
                   authenticators:
                      - leap_one.login_form_authenticator
                      - leap_one.mfa_authenticator
                   entry_point: leap_one.login_form_authenticator
                logout:
                    path: leap_one_user_logout
        access_control:
           - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
           - { path: ^/mfa-check, roles: IS_AUTHENTICATED_ANONYMOUSLY }
           - { path: ^/reset-password, roles: IS_AUTHENTICATED_ANONYMOUSLY }
           - { path: ^/, roles: ROLE_ADMIN }
```

5. (optional) To allow multiple user types

To allow your application to handle multiple types of users you'll need 3 steps.

5.1 Your routes should have an additional section. This should contain the logic for a route prefix on which you want to authenticate your users. The example below demonstrates how to add a new user type called `user`, which will be available under yourdomain.com/user

```
  leap_one_php_sdk_user:
    resource: "@LeapOneSymfonySdkBundle/Resources/config/routes.yaml"
    defaults:
      user_type: 'user'
    prefix:
      user: '/{user_type}'
```

5.2 Create new services for the authenticators

```
    leap_one_user.user_provider:
        class: VentureLeap\LeapOneSymfonySdk\Services\User\UserProvider
        public: true
        arguments:
            $userType: 'user'

    leap_one_user.login_form_authenticator:
        parent: leap_one.login_form_authenticator
        arguments:
            $loginRoute: 'leap_one_user_login.user'
            $userProvider: '@leap_one_user.user_provider'

    leap_one_user.mfa_authenticator:
        parent: leap_one.mfa_authenticator
        arguments:
            $loginRoute: 'leap_one_user_mfa_check'
            $userProvider: '@leap_one_user.user_provider'
```

5.3 Use the defined services in your security layer Add the new user provider to your security.yaml:

```
    providers:
        user_provider:
            id: leap_one.user_provider
        user_user_provider:
            id: leap_one_user.user_provider
```

Add also the new corresponding section to the firewall, eg.:

```
    user:
        pattern: ^/user
        lazy: true
        anonymous: true
        provider: user_user_provider
        guard:
            authenticators:
                - leap_one_user.login_form_authenticator
                - leap_one_user.mfa_authenticator
            entry_point: leap_one_user.login_form_authenticator
        logout:
            path: leap_one_user_logout
```

Of course, you also need to complete your `access_control` logic covering the new routes.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1694d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ca75d6c7e6b2bbef79e67669d37210e38a37ad4fa010d94b8b06c1d6a16a1daf?d=identicon)[mail@danwer.de](/maintainers/mail@danwer.de)

---

Top Contributors

[![danwer81](https://avatars.githubusercontent.com/u/6343334?v=4)](https://github.com/danwer81 "danwer81 (50 commits)")[![escalantef](https://avatars.githubusercontent.com/u/15022972?v=4)](https://github.com/escalantef "escalantef (43 commits)")[![babadee08](https://avatars.githubusercontent.com/u/2856814?v=4)](https://github.com/babadee08 "babadee08 (42 commits)")[![henryfoster](https://avatars.githubusercontent.com/u/16246186?v=4)](https://github.com/henryfoster "henryfoster (13 commits)")[![djordjedotlic](https://avatars.githubusercontent.com/u/23506486?v=4)](https://github.com/djordjedotlic "djordjedotlic (11 commits)")[![FredNandrin](https://avatars.githubusercontent.com/u/7701899?v=4)](https://github.com/FredNandrin "FredNandrin (3 commits)")[![kingpfogel](https://avatars.githubusercontent.com/u/27900682?v=4)](https://github.com/kingpfogel "kingpfogel (1 commits)")

### Embed Badge

![Health badge](/badges/ventureleap-leap-one-symfony-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/ventureleap-leap-one-symfony-sdk/health.svg)](https://phpackages.com/packages/ventureleap-leap-one-symfony-sdk)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k16.7M310](/packages/easycorp-easyadmin-bundle)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[kimai/kimai

Kimai - Time Tracking

4.6k7.4k1](/packages/kimai-kimai)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
