承接 tornevall/tornelib-php-netcurl 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

tornevall/tornelib-php-netcurl

Composer 安装命令:

composer require tornevall/tornelib-php-netcurl

包简介

Yet another Curl Library to handling web calls

README 文档

README

Installation

Recommended installation method: composer install/require. See below.

Install as standalone

require tornevall/tornevall/tornelib-php-netcurl:^6.1

Install with the entire networking suite

require tornevall/tornevall/tornelib-php-network:^6.1

Enabling curl and SOAP

Depending on your needs, you can start with nothing in your hands. Curl is the primary handle that has many more features than the other drivers. It is however actually not required. A proper installation in Ubuntu however may look like this:

apt-get install php-curl php-xml php-json php-soap
  • XML is not required unless you want SOAP and so on.
  • SSL: OpenSSL or similar (if doing https requests).
  • SOAP: SoapClient and XML-drivers (if doing https requests).
  • CURL (if you prefer curl before streams).
  • allow_url_fopen (if you have no access to curl, this has to be enabled).

Packages

Source code can be found at bitbucket repository, to make upgrading more stable. It is mirrored to github but new releases and tags are submitted (when ready) to github to maintain maximum stability (do we trust bitbucket? yes - our own server).

Contact, information and documents

Documentation for v6.1 is located here. There's a Mailinglist put up for everything concerning netcurl. That's also where you can find release information (for now). You can subscribe to the list here. Feel free to join the project from JIRA. And don't be afraid of leaving feedback!

Getting started

Installing the network module instead will make features such as getGitTagsByUrl fully available.

Compatibility

This library do support PHP 5.6 (not lower). However, you should check here to ensure your compatiblity yourself).

Testing: Bamboo, github actions and bitbucket pipelines

NetCURL is tested within a few different suites. Due to the lack of "test time", tests are not entirely fulfilled in the Bitbucket cloud, which is why tests also are executed from other places on commits. Below is a list of those instances.

The Bamboo-server has a history which makes many older PHP versions available. But as of mid-summer 2020, all tests with old versions have been removed. This is also a work that continues. Github tests are only running with non-outdated versions (exception for 5.6) and so are bitbucked targeted. Since bamboo is the flagship of tests, old versions are currently not removed there.

Other Requirements and dependencies

In its initial state, there are basically no requirements as this module tries to pick the best available driver in runtime.

Using real RSS feeds

When using composer to install netcurl, also add the following to composer by for example this:

composer require laminas/laminas-feed

If you prefer to use laminas http driver, you should also install it with laminas/laminas-http:

composer require laminas/laminas-http

It is however not necessary with that driver, since netcurl will fall back to its own drivers if laminas is missing that driver. You should also know that if you use laminas-http it runs on pretty much defaults and therefore probably also uses Laminas\Http\Client as User-Agent. You can request RSS feeds without laminas, however you're kind of on your own by doing this. In that case, you'll get the entries in SimpleXML formatting.

Library Support

Current

  • curl
  • The simplest form of streamdriver and the binary safe file_get_contents (instead of the fopen-drivers that is based on the same system).
  • SoapClient
  • RSS feeds

Will you support sockets?

Not yet. This driver requires more, so this is put on hold.

Will something break if I upgrade?

No. Version 6.1 is written to reach compatibility with v6.0, but with modernized code and PSR-4. However, do not use MODULE_CURL. Make sure you check out https://docs.tornevall.net/x/DoBPAw before deciding to run anything as older PHP-releases could be incompatible. However, if they are, so are probably you.

tornevall/tornelib-php-netcurl 适用场景与选型建议

tornevall/tornelib-php-netcurl 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 62.96k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2017 年 09 月 02 日, 在 PHP 生态内属于活跃度较高的组件。

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

围绕 tornevall/tornelib-php-netcurl 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

  • 总下载量: 62.96k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 26
  • 依赖项目数: 6
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2017-09-02