paysera / lib-rest-migration-bundle
Bundle for backward compatibility with old configuration format for paysera/lib-rest-bundle
Installs: 8 049
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 0
Open Issues: 0
Requires
- php: >=7.0
- ext-json: *
- ext-mbstring: *
- doctrine/orm: ^2.0
- paysera/lib-api-bundle: ^0.1 || ^0.2 || ^1.0
- paysera/lib-rest-bundle: ^4.0 || ^5.0
- paysera/lib-serializer: ^3.0
- symfony/config: ^3.0 || ^4.0
- symfony/dependency-injection: ^3.0 || ^4.0
- symfony/http-foundation: ^3.0 || ^4.0
- symfony/http-kernel: ^3.0 || ^4.0
- symfony/routing: ^3.0 || ^4.0
- symfony/security-core: ^3.0 || ^4.0
- symfony/validator: ^3.0 || ^4.0
Requires (Dev)
- mockery/mockery: ^0.9.4
- paysera/lib-php-cs-fixer-config: ^2.2.2
- phpunit/phpunit: ^6.0
- symfony/yaml: ^5.0
This package is auto-updated.
Last update: 2024-11-22 15:21:50 UTC
README
Bundle that allows easier migration from paysera/lib-rest-bundle
to paysera/lib-api-bundle
.
It helps with the following:
- supporting some of the old parameters and headers from
lib-rest-bundle
for use inlib-api-bundle
; - supporting exceptions and some responsef from
lib-rest-bundle
for use inlib-api-bundle
.
Why?
For new functionality we should just use lib-api-bundle
classes and parameters. For older ones, we still need
to support backward compatibility while migrating, so it's easier to migrate in the following fashion:
- change endpoints to use
lib-api-bundle
, but possibly with older parameters, exceptions etc. - support for new exceptions, parameters and other things comes by-default;
- we can migrate the functionality, services, frontend to the new parameters;
- we can clean up afterwards, using only newer functionality.
Installation
composer require paysera/lib-rest-migration-bundle
Semantic versioning
This library follows semantic versioning.
See Symfony BC rules for basic information about what can be changed and what not in the API.
Running tests
composer update
composer test
Contributing
Feel free to create issues and give pull requests.
You can fix any code style issues using this command:
composer fix-cs