PHPackages                             silpo-tech/rest-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. silpo-tech/rest-bundle

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

silpo-tech/rest-bundle
======================

Rest bundle for Symfony

v2.0.0(7mo ago)02.0k↓15.4%2MITPHPPHP &gt;=8.2CI passing

Since Sep 24Pushed 7mo agoCompare

[ Source](https://github.com/silpo-tech/RestBundle)[ Packagist](https://packagist.org/packages/silpo-tech/rest-bundle)[ RSS](/packages/silpo-tech-rest-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (16)Versions (3)Used By (2)

Rest Bundle for Symfony Framework
=================================

[](#rest-bundle-for-symfony-framework)

[![CI](https://github.com/silpo-tech/RestBundle/actions/workflows/ci.yml/badge.svg)](https://github.com/silpo-tech/RestBundle/actions)[![codecov](https://camo.githubusercontent.com/720854b88b090ddf69d648fed17095c60263c45f6acf40195829ca2d251cfbd9/68747470733a2f2f636f6465636f762e696f2f67682f73696c706f2d746563682f5265737442756e646c652f67726170682f62616467652e737667)](https://codecov.io/gh/silpo-tech/RestBundle)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)

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

[](#installation)

Require the bundle and its dependencies with composer:

```
$ composer require silpo-tech/rest-bundle
```

Register the bundle:

```
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        ...
        new RestBundle\RestBundle()
    );
}
```

How to get current request language and use it?

```
    private RequestService $requestService;

    public function __construct(RequestService $service)
    {
        $this->requestService = $service;
    }

    /**
     * @param AutoMapperConfigInterface $config
     */
    public function configure(AutoMapperConfigInterface $config): void
    {
        $lang = $this->requestService->getLanguage();
        $config
            ->registerMapping(Office::class, OfficeDto::class)
            ->forMember('title', static function (Office $office) use ($lang) {
                return $office->getTranslationByFieldAndLang('title', $lang) ?: $office->getTitle();
            });
    }

```

### How to configure supported languages

[](#how-to-configure-supported-languages)

Add to env variables:

```
DEFAULT_LOCALE=ua

//If you want to restrict available locales (list prioritized, first will be default):
SUPPORTED_LOCALES=["ua", "en", "ru"]

```

Configuration of service:

```
    RestBundle\Request\RequestService:
        arguments:
            $defaultLocale: '%kernel.default_locale%'
            $supportedLocales: '%rest.supported_locales%'

```

Tests
-----

[](#tests)

```
composer test:run
```

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance63

Regular maintenance activity

Popularity21

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

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

Every ~8 days

Total

2

Last Release

228d ago

Major Versions

v1.0.0 → v2.0.02025-10-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/f9891deddc63cb60dd472af17aee913a559f29defbe861135037dbbdf99449a6?d=identicon)[food-tech-devs](/maintainers/food-tech-devs)

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/silpo-tech-rest-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/silpo-tech-rest-bundle/health.svg)](https://phpackages.com/packages/silpo-tech-rest-bundle)
```

###  Alternatives

[sylius/sylius

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

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

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

1.3k1.3M152](/packages/sulu-sulu)[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)[cognesy/instructor-php

The complete AI toolkit for PHP: unified LLM API, structured outputs, agents, and coding agent control

310107.9k1](/packages/cognesy-instructor-php)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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