connectholland / tulip-api-bundle
Tulip API integration for Symfony Framework version 3.3, 3.4 and 4.
Installs: 3 253
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 12
Forks: 4
Type:symfony-bundle
Requires
- php: ^7.0
- connectholland/tulip-api-client: ^1.1.1
- doctrine/orm: ^2.5
- symfony/framework-bundle: ^3.3 || ^4.0
Requires (Dev)
- phpunit/phpunit: ^5.7
README
Tulip API integration for Symfony Framework version and 3.3, 3.4 and 4.
Installation using Composer
Run the following command to add the package to the composer.json of your project:
$ composer require connectholland/tulip-api-bundle
Enable the bundle
Enable the bundle in the kernel:
// app/AppKernel.php public function registerBundles() { $bundles = array( // ... new ConnectHolland\TulipAPIBundle\TulipAPIBundle(), // ... ); }
Configure the bundle
Add the following configuration to your config.yml
file:
# app/config/config.yml # Tulip API Configuration tulip_api: url: %tulip_api_url% client_id: %tulip_api_client_id% shared_secret: %tulip_api_shared_secret% objects: ~
Mapping Doctrine entities to Tulip API services
By default the bundle uses the short name of the entity as service name.
When you need to change this behavior for an entity, you can define a mapping by adding the FQCN to tulip_api.objects
:
# app/config/config.yml tulip_api: objects: - {name: AppBundle\Entity\Profile, service: contact}
Usage
...
Credits
Also see the list of contributors who participated in this project.
License
This package is licensed under the MIT License. Please see the LICENSE file for details.