druidvav / api-service-bundle
Package info
github.com/druidvav/sf-api-service-bundle
Type:symfony-bundle
pkg:composer/druidvav/api-service-bundle
v4.2
2026-05-05 15:34 UTC
Requires
- php: >=7.4.0
- ext-json: *
- symfony/contracts: ^1.0 || ^2.5 || ^3.0
- symfony/event-dispatcher: ^5.4 || ^6.0
- symfony/framework-bundle: ^5.4 || ^6.0
- symfony/http-foundation: ^5.4 || ^6.0 || ^7.0
- symfony/stopwatch: ^5.4 || ^6.0
Requires (Dev)
- phpstan/phpstan: ^2.1
- phpstan/phpstan-doctrine: ^2.0
- rector/rector: ^2.4
README
Installation
Step 1: Download DvApiServiceBundle using composer
Require the druidvav/api-service-bundle with composer Composer.
$ composer require druidvav/api-service-bundle
Step 2: Enable the bundle
Enable the bundle in the kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Druidvav\ApiServiceBundle\DvApiServiceBundle(), // ... ); }
Step 3: Configure the DvApiServiceBundle
# app/config/config.yml dv_api_service: logger: "@monolog.logger.api"
Step 4: Define your api service files
# src/AppBundle/Resources/config/services.yml services: _defaults: autowire: true # Automatically injects dependencies in your services. autoconfigure: true # Automatically registers your services as commands, event subscribers, etc. AppBundle\ApiService\: resource: '../../ApiService/*' tags: [ "jsonrpc.api-service" ]