uni-method / symfony-lib
Symfony bundle for UniMethod Frame: turns a declarative config into a REST API with routing, request and response mapping, constraint checks, access control and error handling
Package info
github.com/uni-method/symfony-lib
Type:symfony-bundle
pkg:composer/uni-method/symfony-lib
Requires
- php: ^8.3
- ext-ctype: *
- symfony/framework-bundle: ^7|^8
- symfony/yaml: ^7|^8
- uni-method/frame: 1.0.0
Requires (Dev)
- doctrine/orm: ^3
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^12.4
- rector/rector: ^2.2
- squizlabs/php_codesniffer: ^4.0
- symfony/console: ^7|^8
- symfony/lock: ^7|^8
- symfony/monolog-bundle: ^4.0
- symfony/rate-limiter: ^7|^8
- symfony/security-bundle: ^7|^8
- symfony/validator: ^7|^8
Suggests
- doctrine/orm: DoctrineLocator, DoctrineSaver, DoctrineRemover
- symfony/rate-limiter: SymfonyRateLimiter: default limiter for apis.<name>.rate_limit
- symfony/security-bundle: SymfonyUserProvider: without it everything with access.authRequired or access.roles is denied (401)
- symfony/validator: SymfonyConstraintChecker, shared constraints and 422 instead of the NullConstraintChecker stub
- symfony/yaml: YamlConfigLoader for config_path with a .yaml/.yml extension
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-06 17:09:24 UTC
README
A Symfony bundle for integrating the UniMethod\Frame framework with Symfony applications.
It turns a declarative config (schema + impl) into a ready REST API: routing,
mapping the request body into entities and back, constraint checks, access
control and error handling.
Requirements
- PHP 8.3+
- Symfony 7.1+ or 8.0+
- Doctrine ORM 2.14+ or 3.0+ (for the built-in Doctrine integrations)
symfony/console(for the config check command)
Installation
composer require uni-method/symfony-lib
The bundle is registered by Symfony Flex automatically. If not, add it to
config/bundles.php:
return [ // ... UniMethod\SymfonyLib\SymfonyLibBundle::class => ['all' => true], ];
Documentation
Table of contents — docs/en/README.md; quick start — docs/en/usage/quickstart.md.
UniMethod Symfony Bundle
Symfony-бандл для интеграции фреймворка UniMethod\Frame с Symfony-приложениями.
Превращает декларативный конфиг (schema + impl) в готовый REST API: роутинг,
маппинг тела запроса в сущности и обратно, проверку ограничений, контроль
доступа и обработку ошибок.
Требования
- PHP 8.3+
- Symfony 7.1+ или 8.0+
- Doctrine ORM 2.14+ или 3.0+ (для встроенных Doctrine-интеграций)
symfony/console(для команды проверки конфига)
Установка
composer require uni-method/symfony-lib
Бандл регистрируется через Symfony Flex автоматически. Если нет — добавьте в
config/bundles.php:
return [ // ... UniMethod\SymfonyLib\SymfonyLibBundle::class => ['all' => true], ];
Документация
Оглавление — docs/ru/README.md; быстрый старт — docs/ru/usage/quickstart.md.