定制 roiarthurb/openmole 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

roiarthurb/openmole

Composer 安装命令:

composer require roiarthurb/openmole

包简介

PHP wrapper to communicate with the OpenMole platform.

README 文档

README

Contributors Forks Stargazers Issues LGPL 2.1 License


Logo

OpenMole PHP Wrapper

PHP wrapper to communicate easily with the OpenMole REST API
Explore the docs »

Report Bug · Request Feature

Table of Contents

About The Project

This library has been made to more easily integrate the communication between your PHP application (I'm using it with the Lumen µFramework) and an OpenMole REST API !

So this library will wrap all the exposed URL, send a curl request and return the result in an easy to use format for your PHP application.

Built With

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

This is an example of how to list and check version of things you need to have to use the library.

  • php
$ php -v
PHP 7.4.3 (cli) (built: Feb 18 2020 15:35:13) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
  • curl
$ curl -V
curl 7.69.0 (x86_64-pc-linux-gnu) libcurl/7.69.0 OpenSSL/1.1.1d zlib/1.2.11 libidn2/2.3.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh2/1.9.0 nghttp2/1.39.2
Release-Date: 2020-03-04
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets
  • composer
$ composer -V
Composer version 1.9.3 2020-02-04 12:58:49

Installation from composer (the easy way)

  1. Move to the root folder of your application
$ cd /path/to/your/app
  1. Make the library required
$ composer require roiarthurb/openmole
  1. Install the required libraries
$ composer install

Installation from git

  1. Clone the OpenMole-PHP-Wrapper
git clone https://github.com/RoiArthurB/OpenMole-PHP-Wrapper.git
  1. Link/Use the lib in your application

Usage

Create a OpenMole Wrapper instance

$myWrapper = new \RoiArthurB\OpenMole\OpenMole( $url = "api.myopenmole.org", $port = 8080, $https = false);

Get full list of jobs running on your OpenMole instance

$result = $myWrapper->getJobs();
var_dump($result); // array(2) { [0]=> object(stdClass)#34 (1) { ["id"]=> string(36) "1b303e8a-b739-46bb-8b9d-323c588e74ff" } [1]=> object(stdClass)#35 (1) { ["id"]=> string(36) "9a1d21e0-c9ed-42e8-b0f3-ba6de6abda53" } } 

Get a single job state

$result = $myWrapper->getJobState("1b303e8a-b739-46bb-8b9d-323c588e74ff");
var_dump($result); // object(stdClass)#34 (1) { ["state"]=> string(8) "finished" } 

For more examples, please refer to the Documentation

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the LGPL 2.1 License. See LICENSE for more information.

Authors

Project Link: https://github.com/RoiArthurB/OpenMole-PHP-Wrapper OpenMole Project Link: https://openmole.org/index.html

roiarthurb/openmole 适用场景与选型建议

roiarthurb/openmole 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5 次下载、GitHub Stars 达 0, 最近一次更新时间为 2020 年 03 月 06 日, 在 PHP 生态内属于活跃度较高的组件。

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

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

围绕 roiarthurb/openmole 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

  • 总下载量: 5
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2020-03-06