Download the PHP package stfalcon-studio/api-bundle without Composer
On this page you can find all versions of the php package stfalcon-studio/api-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download stfalcon-studio/api-bundle
More information about stfalcon-studio/api-bundle
Files in stfalcon-studio/api-bundle
Package api-bundle
Short Description Base classes and helper services to build API application via Symfony.
License MIT
Homepage https://github.com/stfalcon-studio/ApiBundle
Informations about the package api-bundle
ApiBundle
:package: Base classes and helper services to build API application via Symfony.
Installation
Add next dependencies if you want to use JWT auth
Check the config/bundles.php
file
By default, Symfony Flex adds this bundle to the config/bundles.php
file.
In case when you ignored contrib-recipe
during bundle installation it would not be added. In this case add the bundle manually.
Set Up Steps
Add mappings to Doctrine ORM config
Set up a directory for JSON schemas
The default directory is ./src/Json/Schema/
. Or you can change it via bundle configuration.
Usage
Dictionary enums
For simple dictionary enums, you can use the DictionaryEnumInteface
interface on Enums.
It will register for serialization like a dictionary, so the result will be like:
So, now the dictionary action will look like:
In some cases, you may need to serialise dictionary value not as dictionary, for this just add in context parameter default_normalization
with any value.
Contributing
Read the CONTRIBUTING file.
All versions of api-bundle with dependencies
egulias/email-validator Version ^4.0
fresh/datetime Version ^3.0
ircmaxell/password-compat Version ^v1.0.4
justinrainbow/json-schema Version ^5.2.12
predis/predis Version ^2.0
sentry/sentry-symfony Version ^4.13.0
symfony/config Version ^7.0
symfony/dependency-injection Version ^7.0
symfony/flex Version ^2.4
symfony/http-kernel Version ^7.0
symfony/http-foundation Version ^7.0
symfony/framework-bundle Version ^7.0
symfony/serializer Version ^7.0
symfony/translation Version ^7.0
symfony/validator Version ^7.0