avkluchko / api-platform-extensions
Useful extensions for ApiPlatform
Installs: 68
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 4
Type:symfony-bundle
Requires
- php: ^7.1.3 || ^8.0
- api-platform/core: ^2.5
- doctrine/orm: ^2.5
- symfony/config: ^4.0 || ^5.1.5
- symfony/dependency-injection: ^4.1.12 || ^5.1.5
- symfony/http-kernel: ^4.0 || ^5.1.5
- symfony/phpunit-bridge: ^4.1.12 || ^5.1.5
- symfony/security-core: ^4.1.12 || ^5.1.5
This package is auto-updated.
Last update: 2024-10-29 02:57:49 UTC
README
Useful extensions for Api Platform.
Requirements
The minumum requirement by Api Platform Extensions Bundle is that your web-server supports PHP 7.1 or above.
Installation
Install the package with:
composer require avkluchko/api-platform-extensions
If you're not using Symfony Flex, you'll also
need to enable the AVKluchko\ApiPlatformExtensions\ApiPlatformExtensionsBundle
in your AppKernel.php
file.
AdminGroupsContextBuilder needs to auto adding groups "admin:read" and "admin:write" to serialization process. To enable AdminGroupsContextBuilder add to config/service.yaml:
AVKluchko\ApiPlatformExtensionBundle\Serializer\AdminGroupsContextBuilder: decorates: 'api_platform.serializer.context_builder' arguments: [ '@AVKluchko\ApiPlatformExtensionBundle\Serializer\AdminGroupsContextBuilder.inner']