moee/sns-autoconfirm-bundle
Composer 安装命令:
composer require moee/sns-autoconfirm-bundle
包简介
Automatic subscription confirmation of AWS SNS HTTP(s) endpoints with Symfony (alpha)
README 文档
README
Automatic Confirmation of AWS SNS HTTP(s) subscription messages with Symfony
Warning: Don't use this in production (yet).
This is a proof of concept in an alpha stage. It is lacking signature verification and so it is not secure. Please feel free to experiement with it and expand it, but don't use this in production.
Usage
1. Add the package:
composer require moee/sns-autoconfirm-bundle
2. Add the Bundle to your application
new Moee\SnsAutoconfirmBundle\MoeeSnsAutoconfirmBundle()
3. Annotate Endpoints
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Moee\SnsAutoconfirmBundle\Annotation\SnsEndpoint;
class ExampleController
{
/**
* @Route("/", name="index")
* @SnsEndpoint
*/
public function indexAction()
{
/* ... */
}
}
If you now add this route as SNS HTTP(s) endpoint on an endpoint that is accessible for AWS, then it will automatically confirm the subscription.
统计信息
- 总下载量: 5.73k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-01-12