Base Services for APIs in Symfony 5.1+ It includes:
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 the vendor_copy.php file to the root of the project and configure the scripts in the composer.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]
Run de following composer command:
composer update experteam/api-base-bundle
How can I help you explore Laravel packages today?