emersonrodrigod / sns-bundle
A simple Symfony bundle for AWS SNS.
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 4
Type:symfony-bundle
Requires
- php: >=7.2
- aws/aws-sdk-php: ^3.0
- symfony/config: ~2.3|~3.0|~4.0|~5.0
- symfony/dependency-injection: ~2.3|~3.0|~4.0|~5.0
- symfony/framework-bundle: ~2.3|~3.0|~4.0|~5.0
- symfony/http-foundation: ~2.3|~3.0|~4.1|~5.0
- symfony/http-kernel: ~2.3|~3.0|~4.0|~5.0
This package is auto-updated.
Last update: 2024-09-19 23:10:12 UTC
README
A simple Symfony bundle for AWS SNS
Setup
Step 1: Download SnsBundle using composer
composer require solpac/SnsBundle
Step 2: Enable the bundle
Enable the bundle in the kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Solpac\SNSBundle\SolpacSNSBundle() ); }
Step 3: Add configuration
# app/config/config.yml solpac_sns: amazon_sns: amazon_sns_key: %amazon_sns_key% amazon_sns_secret: %amazon_sns_secret% amazon_sns_region: %amazon_sns_region%
Usage
Using service
<?php $snsClient = $this->get('amazon_sns_client'); ?>