econtract/compare
Composer 安装命令:
composer require econtract/compare
包简介
E-Contract BVBA comparison API package
关键字:
README 文档
README
This package offers the integration of the Aanbieders.be comparison collection API. This API can be used by partners and affiliates of Aanbieders to leverage information from the Aanbieders comparison calculation engine on their own websites.
Installation
Pull this package in through Composer:
{ "require": { "econtract/compare": "3.*" } }
Next, you will need to add several values to your .env file:
API_staging=false // Is this a staging server?
API_host=your_secret_api_key // API host
API_key=your_public_api_key // Public API key
API_secret=your_secret_api_key // Private API key
In order to use the API (and thus this package), an API key is required. If you are in need of such a key, please get in touch with Aanbieders.be via their website.
Laravel installation
Add the service provider to your config/app.php file:
'providers' => array( //... \Econtract\Compare\CompareServiceProvider::class, )
Add the API as an alias to your config/app.php file
'facades' => array( //... 'Api' => \Econtract\Compare\Facades\Compare::class, ),
Usage
Laravel usage
You can access the API using the alias you have selected in your config/app.php file:
$products = Api::getProducts(
array(
'sg' => 'consumer',
'cat' => 'internet',
'lang' => 'nl',
)
);
$suppliers = Api::getSuppliers(
array(
'sg' => 'consumer',
'cat' => 'internet',
'lang' => 'nl',
)
);
$comparisons = Api::createComparison(
array(
'sg' => 'consumer',
'cat' => 'gas',
'lang' => 'nl',
'u' => '4000',
'ut' => 'kwh',
'zip' => '3540',
't' => 'no',
'd' => '0',
)
);
For information regarding all possible parameters and their properties, we kindly refer you to the API documentation.
Non-laravel usage
include('vendor/autoload.php'); use Econtract/Compare/CompareService; $dotenv = new Dotenv\Dotenv(__DIR__); $dotenv->load(); $compareService = new CompareService(); $compareService->getProducts( array( 'sg' => 'consumer', 'cat' => 'internet', 'lang' => 'nl', ) );
License
This package is proprietary software and may not be copied or redistributed without explicit permission.
Contact
Charles Dekkers (owner)
- Email: charles@aanbieders.be
- Telephone: +32 497 50 49 08
Jan Oris (developer)
- Email: jan.oris@ixudra.be
- Telephone: +32 496 94 20 57
econtract/compare 适用场景与选型建议
econtract/compare 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.34k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2016 年 02 月 24 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「api」 「aanbieders」 「E-Contract」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 econtract/compare 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 econtract/compare 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 econtract/compare 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A PSR-7 compatible library for making CRUD API endpoints
e-Contract BVBA CRM API package
Aanbieders.be API client.
Laravel package to recover information of the Aanbieders.be Comparison service provider, using the Aanbieders API
E-Contract BVBA toolbox API package
A lightweight plain-PHP framework for database-backed CRUD APIs.
统计信息
- 总下载量: 2.34k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 15
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2016-02-24