bhavinjr/laravel-ekomi
Composer 安装命令:
composer require bhavinjr/laravel-ekomi
包简介
Ekomi laravel package
README 文档
README
lararvel-ekomi based on eKomi_APIv3
Installation
First, you'll need to install the package via Composer:
$ composer require bhavinjr/laravel-ekomi
If you are don't use using Laravel 5.5.* Then, update config/app.php by adding an entry for the service provider.
'providers' => [ // ... Bhavinjr\Ekomi\Providers\EkomiServiceProvider::class, ]; 'aliases' => [ //... "Ekomi": "Bhavinjr\Ekomi\Facades\Ekomi", ];
In command line paste this command:
php artisan config:cache
In command line again, publish the default configuration file:
php artisan vendor:publish --provider="Bhavinjr\Ekomi\Providers\EkomiServiceProvider"
Configuration
Configuration was designed to be as flexible.
global configuration can be set in the config/ekomi.php file.
after update config/ekomi.php file.
php artisan config:cache
Usage
The package gives you the following methods to use:
PutProduct
use Bhavinjr\Ekomi\Services\PutProduct; use Ekomi; $putProduct = new PutProduct(); $putProduct->setProductId(1) ->setProductName('t-shirt') ->setProductOther('json or serialized array') //optional. if has additional data such as categories, image_urls etc.. ->setProductCanonicalLink('www.laravel-ekomi.com/t-shirt'); //optional Ekomi::create($putProduct);
PutOrder
$putOrder = new PutOrder(); $putOrder->setOrderId(1) ->setProductIds(1) //if more than on products '1,2' ->setOrderTimestamp('2018-08-16'); // YYYY-MM-DD Ekomi::create($putOrder);
PutComment
$putComment = new PutComment(); $putComment->setOrderId(1) ->setComment('laravel+ekomi') //Must be urlencoded. ->setUpdate('replace or delete'); //optional Ekomi::create($putComment);
PutDialog
$putDialog = new PutDialog(); $putDialog->setOrderId(1) ->setMessage('laravel+ekomi'); //Must be urlencoded Ekomi::create($putDialog);
PutClient
$putClient = new PutClient(); $putClient->setClientId(1) ->setEmail('bhavin@gmail.com'); //optional Ekomi::create($putClient); also check other optional properties: setLocale, setScreenName, setFirstName, setLastName, setCountry, setCity, setZip, setGender, setBirthdate, setMetadata
AssignClientOrder
$assignOrder = new AssignClientOrder(); $assignOrder->setOrderId(1) ->setClientId(1) ->setUnlink(false); //true if want to removes the order_id assignment Ekomi::create($assignOrder);
GetAverage
$getAverage = new GetAverage(); $getAverage->setDays(8); //optional Ekomi::create($getAverage);
GetDialog
$getDialog = new GetDialog(); $getDialog->setContent('process_only') //optional ->setRange('all') //optional ->setFilter('all'); //optional Ekomi::create($getDialog);
GetFeedback
$getFeedback = new GetFeedback(); $getFeedback->setCaching('verylong') //optional available none, short, middle, long, verylong ->fields('date,order_id'); //optional Ekomi::create($getFeedback); also check other optional properties: setFilter, setRange
Also other methods is available
GetMarketResearch, GetProduct, GetProductFeedback, GetProductResearch, GetRated, GetResearch, GetSettings, GetSnapshot, GetVisitorFeedback
also use setType and setCharset properties to any methods
=> setType is used for output
default type set is 'json' (json or serialized)
=> setCharset is used for Character encoding
default charset set is 'iso'
bhavinjr/laravel-ekomi 适用场景与选型建议
bhavinjr/laravel-ekomi 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 20 次下载、GitHub Stars 达 0, 最近一次更新时间为 2018 年 08 月 17 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「ekomi」 「laravel ekomi」 「ekomi laravel」 「ekomi feedback」 「ekomi rating」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 bhavinjr/laravel-ekomi 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 bhavinjr/laravel-ekomi 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 bhavinjr/laravel-ekomi 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
eKomi API v3
Symfony2 Bundle for Bootstrap MaxLength.js - An visual feedback indicator for the MaxLength attribute
TYPO3 Feedback Extension - The TYPO3 Feedback Extension is a great tool for gathering feedback from visitors or customers on your website. With the All In One TYPO3 Feedback extension, website admin can easily add feedback forms in various styles to their website, allowing them to collect valuable i
With feedback.js plugin repository and html2canvas with layout Bootstrap 3
A simple, flexible Laravel package for adding polymorphic reactions to any model. React with any text: like, love, care, or anything you want.
Reportable Polymorphic Eloquent Models for Laravel 5
统计信息
- 总下载量: 20
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-08-17