payter/wp-remp-connector 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

payter/wp-remp-connector

Composer 安装命令:

composer require payter/wp-remp-connector

包简介

WP plugin, helper for retrievie of REMP CRM user data

README 文档

README

This plugin will provide functions to connect and retrieve API data from REMP CRM.

Installation

Download this package from this repository and copy it into /wp-content/plugins directory of your WP installation and run composer install in this folder to download vendors. Then go to the administration panel and activate plugin in plugins admin section.

If you use Bedrock WP installation, just install it by composer command and that's all:

composer require payter/wp-remp-user-helper:dev-master

Configuration

Plugin provide several PHP Constants and one that is mandatory to configure. Please add this into wp-config.php and set your current REMP CRM domain.

define('REMP_URL', 'http://remp.crm.domain');

Please check other constants to configure in wp-remp-user-helper.php

Functions to use

Plugin use functional programming - so all functionality is encapsuled in functions and ready to use. All functionality is PHP files that are located in lib directory.

Api functions

API functions that connects and retrieve data from REMP CRM API. Most useful function to use:

// Get parsed data from api or null
remp_api_data($url, $options = [], $method = 'GET'); 

// Will connect to the REMP API and return back Guzzle client object
remp_api_client($url, $options = [], $method = 'GET')

Cache functions

Cache functions for storing of results. It's important to store results in cache becauseAPI connection is expensive operation. You can substitute this function by your own in mu-plugins folder

remp_cache_key($key);
remp_cache_get($key, $group = REMP_CACHE_KEY_GROUP, $force = false);
remp_cache_set($key, $data, $group = REMP_CACHE_KEY_GROUP, $expire = REMP_CACHE_EXPIRATION);

Helpers functions

Other functions, that are useful

// Will generate url to the REMP CRM by passing url path as argument
remp_get_url($url_path = '');

User API functions

Use this functions to retrieve user info

// Check, if user is logged in REMP
remp_user_logged_in();

// Retrieve user info from API
remp_user_get_info();

// Retrieve all subscriptions from API for logged user
remp_user_get_subscriptions();

// Check by subscriptions, if user have currently active subscription
remp_user_is_premium();

payter/wp-remp-connector 适用场景与选型建议

payter/wp-remp-connector 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.24k 次下载、GitHub Stars 达 3, 最近一次更新时间为 2020 年 02 月 05 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「plugin」 「crm」 「wp」 「REMP」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 payter/wp-remp-connector 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 payter/wp-remp-connector 我们能提供哪些服务?
定制开发 / 二次开发

基于 payter/wp-remp-connector 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 1.24k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 16
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-02-05