experteam / api-base-bundle
Base functionality bundle for APIs
Package info
github.com/experteam-mx/api-base-bundle
Type:symfony-bundle
pkg:composer/experteam/api-base-bundle
4.3.5
2025-08-05 15:07 UTC
Requires
- php: >=8.1
- ext-bcmath: *
- ext-json: *
- ext-pdo: *
- ext-redis: *
- doctrine/dbal: ^3
- doctrine/doctrine-bundle: ^2.13
- doctrine/doctrine-fixtures-bundle: ^4.0
- doctrine/orm: ^3.3
- friendsofsymfony/rest-bundle: ^3.8
- nelmio/api-doc-bundle: ^4.36
- php-di/phpdoc-reader: ^2.2
- symfony/config: 6.4.*
- symfony/dependency-injection: 6.4.*
- symfony/http-client: 6.4.*
- symfony/http-kernel: 6.4.*
- symfony/security-bundle: 6.4.*
- symfony/security-core: 6.4.*
- symfony/serializer: 6.4.*
- symfony/uid: 6.4.*
- symfony/validator: 6.4.*
Requires (Dev)
- symfony/dotenv: 6.4.*
- symfony/flex: ^2
- symfony/framework-bundle: 6.4.*
- symfony/phpunit-bridge: 6.4.*
This package is auto-updated.
Last update: 2026-05-27 02:56:26 UTC
README
Base Services for APIs in Symfony 5.1+
It includes:
- Params Client: Service to obtain the value of parameters defined in api-companies.
- JSend Response: Sets the format of the JSON response according to the JSEND specification (https://github.com/omniti-labs/jsend).
- Request Util: Request validation service.
Install
- Run de following composer command:
composer require experteam/api-base-bundle
-
Create the configuration file through any of the following options:
a. Manually copy the example file in the package root to the folder
config/packages/.
b. Copy thevendor_copy.phpfile to the root of the project and configure the scripts in thecomposer.jsonfile:"scripts": { "vendor-scripts": [ "@php vendor_copy.php -s vendor/experteam/api-base-bundle/experteam_api_base.yaml.example -d config/packages/experteam_api_base.yaml --not-overwrite --ignore-no-source" ], "post-install-cmd": [ "@vendor-scripts" ], "post-update-cmd": [ "@vendor-scripts" ] }, -
Edit the bundle configuration file
config/packages/experteam_api_base.yaml:
experteam_api_base:
params:
remote:
enabled: [Enabled]
url: [URL]
defaults:
[PARAM NAME]: [Value]
[PARAM NAME]: [Value]
Update
Run de following composer command:
composer update experteam/api-base-bundle