aestrada2796/mrconnect
Composer 安装命令:
composer require aestrada2796/mrconnect
包简介
Integration with the Reseller MX API system
README 文档
README
Instalación
Vendor
composer require aestrada2796/mrconnect
Servers
| Entorno | Servidor |
|---|---|
| Test | http://localhost:8000/graphql |
Importante
- Debe agregar a su archivo .env las siguiente variables:
API_USER='user@test.com' API_PASS='user@test.com' API_ROUTE= El `API_ROUTE` es solo requerido si esta en entorno de Test
Endpoints
- login
- topup
- topup-card
- parcel-service
- clapzi
- tracking
Uso
- La function del login no es necesario usarla pues el resto de las funciones verifican el token antes ejecutar la función.
Query::make("login")->login();
- En
makeponemos el endpoint que se va a consultar Ej:Query::make("topup") - Tenemos dos funciones para la consulta a los endpoint de GraphQL
- Si tenemos un dominio avanzado de esta tecnología simplemente en la función
->queryle pasamos la consulta, se pueden agregar tanta consultas como sean necesarias.
Query::make("") ->query('users(id: "5677f026-b5c6-474b-a927-6e90afd12d16"){ id,name }') ->send();
- Este es más sencillo donde pasamos a la función
->functionlos paramentros necesarios, se pueden agregar tanta funciones como sean necesarias
| Parámetro | Significado | Requerido |
|---|---|---|
| name | Nombre de la query a consultar | Si |
| fields | Campos a devolver por la consulta | Si |
| filters | Filtros de la consulta | No |
Query::make("") ->function( 'users', 'id,name,roles{name}', 'id: "15e2c1c9-ba99-468e-a008-547d0dc634c8"' ) ->send();
- Se pueden usar tambien variables, pasándolas tipo arreglo a la function
->variablescon formato['key'=>'value'']y la utilizamos en la consulta agregando a la función->namedos parámetros: el primero es el nombre y el segundo son las variables a usar, en formato['$key'=>'value!'']donde$keyes el nombre de la variable ya declarada iniciada con$yvaluees el tipo de dato de la variable terminado en!. Dentro de la consulta se usa$key
Query::make("") ->name('prueba', ['$id' => "String!"]) ->variables(["id" => "15e2c1c9-ba99-468e-a008-547d0dc634c8"]) ->function( 'users', 'id,name,roles{name}', 'id: $id' ) ->send();
aestrada2796/mrconnect 适用场景与选型建议
aestrada2796/mrconnect 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 27 次下载、GitHub Stars 达 0, 最近一次更新时间为 2022 年 10 月 08 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「Integration API」 「Reseller MX」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 aestrada2796/mrconnect 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 aestrada2796/mrconnect 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 aestrada2796/mrconnect 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
API connector library for the insanely fast Team Internet Backend APIs (CentralNic Reseller, Internet.bs, Moniker)
LinkedIn API PHP SDK with OAuth 2.0 & CSRF support. Can be used for social sign in or sharing on LinkedIn. Examples. Documentation.
LinkedIn API PHP SDK with OAuth 2.0 & CSRF support. Can be used for social sign in or sharing on LinkedIn. Examples. Documentation.
A PSR-7 compatible library for making CRUD API endpoints
Laravel integration for blade-to-react
The missing social authentication for thephpleague/oauth2-server, adapted from schedula/league-oauth2-social
统计信息
- 总下载量: 27
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 11
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-10-08