simonhamp/ensemble-plugin
Composer 安装命令:
composer require simonhamp/ensemble-plugin
包简介
Connects your project to Ensemble
README 文档
README
Adds a public endpoint to your application that Ensemble can periodically request for information about your Composer packages.
🙏 Please consider sponsoring the development of Ensemble 💚
Requirements
- An Ensemble account (completely free!)
- Laravel 7+
- PHP 7+
Security, Privacy & Performance
To protect your application, we encrypt the information about your packages using a unique, private key that is given to you when you set up your app in Ensemble.
This means, even if your app is only accessible via HTTP, it will be very hard for a third party to discover what packages it depends on.
!!! DON'T SHARE YOUR PRIVATE KEY !!!
If you feel that the key is compromised, you will be able to generate a new one easily.
Also, even though the endpoint is public, it requires a special kind of POST
containing an encrypted payload (also using the pre-shared private key), to make sure
only Ensemble can request the encrypted data about your packages.
And if someone does discover the payload, it has a time limit so it can only be used for a short time (usually less than a minute).
Further, to stop even Ensemble causing you problems, this plugin caches the response before sending it back. This cache lasts for 60 minutes by default (configurable, see below). This helps prevent Ensemble from abusing your app/server resources, either inadvertently or in the unlikely event of a security breach.
If you disable Ensemble or we have any problems communicating with your app multiple times in a row, we'll stop trying until you tell us otherwise.
Installation
$ composer require simonhamp/ensemble-plugin
This will install the latest version of the plugin. You can install earlier versions that will support Laravel 5.5+, but I highly recommend that you upgrade your app to the latest version of Laravel.
NB: This package currently only supports Laravel. If you'd like to use Ensemble with another framework, please raise an issue
Configure
Add the following to your .env:
# Required config
ENSEMBLE_ENABLED=true
ENSEMBLE_PRIVATE_KEY=#The key provided when creating your app in Ensemble#
# Optional config
ENSEMBLE_ENDPOINT=#The URL we'll use to communicate with your app. Default: /ensemble#
ENSEMBLE_CACHE_TTL=#The cache life in minute. Default: 60#
simonhamp/ensemble-plugin 适用场景与选型建议
simonhamp/ensemble-plugin 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 893 次下载、GitHub Stars 达 4, 最近一次更新时间为 2018 年 06 月 05 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「security」 「composer」 「packages」 「updates」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 simonhamp/ensemble-plugin 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 simonhamp/ensemble-plugin 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 simonhamp/ensemble-plugin 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Provide a way to secure accesses to all routes of an symfony application.
a package for collections of custom toolkit
It's a barebone security class written on PHP
This composer plugin enables installation of GravityForms WordPress plugin and its addons.
a simple toolkit for social networks
统计信息
- 总下载量: 893
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-06-05