experteam / api-base-bundle
Base functionality bundle for APIs
Installs: 9 028
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=8.1
- ext-bcmath: *
- ext-json: *
- ext-pdo: *
- ext-redis: *
- doctrine/doctrine-bundle: ^2.8
- doctrine/doctrine-fixtures-bundle: ^3.4
- doctrine/orm: ^2.14
- friendsofsymfony/rest-bundle: ^3.5
- nelmio/api-doc-bundle: ^4.0
- php-di/phpdoc-reader: ^2.2
- symfony/config: 6.3.*|6.4.*
- symfony/dependency-injection: 6.3.*|6.4.*
- symfony/http-client: 6.3.*|6.4.*
- symfony/http-kernel: 6.3.*|6.4.*
- symfony/security-bundle: 6.3.*|6.4.*
- symfony/security-core: 6.3.*|6.4.*
- symfony/serializer: 6.3.*|6.4.*
- symfony/uid: 6.3.*|6.4.*
- symfony/validator: 6.3.*|6.4.*
Requires (Dev)
- symfony/dotenv: 6.3.*|6.4.*
- symfony/flex: ^2
- symfony/framework-bundle: 6.3.*|6.4.*
- symfony/phpunit-bridge: 6.3.*|6.4.*
- dev-master
- 3.5.2
- 3.5.1
- 3.5.0
- 3.4.8
- 3.4.7
- 3.4.6
- 3.4.5
- 3.4.4
- 3.4.3
- 3.4.2
- 3.4.1
- 3.4.0
- 3.3.2
- 3.3.1
- 3.3.0
- 3.2.0
- 3.1.1
- 3.1.0
- 3.0.11
- 3.0.10
- 3.0.9
- 3.0.8
- 3.0.7
- 3.0.6
- 3.0.5
- 3.0.4
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
- 2.1.x-dev
- 2.1.24
- 2.1.23
- 2.1.22
- 2.1.21
- 2.1.20
- 2.1.19
- 2.1.18
- 2.1.17
- 2.1.16
- 2.1.15
- 2.1.14
- 2.1.13
- 2.1.12
- 2.1.11
- 2.1.10
- 2.1.9
- 2.1.8
- 2.1.7
- 2.1.6
- 2.1.5
- 2.1.4
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.2
- 2.0.1
- 2.0.0
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.22
- 1.1.21
- 1.1.20
- 1.1.19
- 1.1.18
- 1.1.17
- 1.1.16
- 1.1.15
- 1.1.14
- 1.1.13
- 1.1.12
- 1.1.11
- 1.1.10
- 1.1.9
- 1.1.8
- 1.1.7
- 1.1.6
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.73
- 1.0.72
- 1.0.71
- 1.0.70
- 1.0.69
- 1.0.68
- 1.0.67
- 1.0.66
- 1.0.65
- 1.0.64
- 1.0.63
- 1.0.62
- 1.0.61
- 1.0.60
- 1.0.59
- 1.0.58
- 1.0.57
- 1.0.56
- 1.0.55
- 1.0.54
- 1.0.53
- 1.0.52
- 1.0.51
- 1.0.50
- 1.0.49
- 1.0.48
- 1.0.47
- 1.0.46
- 1.0.45
- 1.0.44
- 1.0.43
- 1.0.42
- 1.0.41
- 1.0.40
- 1.0.39
- 1.0.38
- 1.0.37
- 1.0.36
- 1.0.35
- 1.0.34
- 1.0.33
- 1.0.32
- 1.0.31
- 1.0.30
- 1.0.29
- 1.0.28
- 1.0.27
- 1.0.26
- 1.0.25
- 1.0.24
- 1.0.23
- 1.0.22
- 1.0.21
- 1.0.20
- 1.0.19
- 1.0.18
- 1.0.17
- 1.0.16
- 1.0.15
- 1.0.14
- 1.0.13
- 1.0.12
- 1.0.11
- 1.0.10
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-dev
This package is auto-updated.
Last update: 2024-11-19 17:45:00 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.php
file to the root of the project and configure the scripts in thecomposer.json
file:"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