PHPackages                             tornevall/tornelib-php-netcurl - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. tornevall/tornelib-php-netcurl

ActiveLibrary[HTTP &amp; Networking](/categories/http)

tornevall/tornelib-php-netcurl
==============================

Yet another Curl Library to handling web calls

6.1.9(1y ago)061.4k↓31.3%3Apache-2.0PHPCI passing

Since Sep 2Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Tornevall/tornelib-php-netcurl)[ Packagist](https://packagist.org/packages/tornevall/tornelib-php-netcurl)[ RSS](/packages/tornevall-tornelib-php-netcurl/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (6)Versions (48)Used By (3)

NETCURL 6.1
===========

[](#netcurl-61)

Installation
------------

[](#installation)

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

### Install as standalone

[](#install-as-standalone)

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

```

### Install with the entire networking suite

[](#install-with-the-entire-networking-suite)

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

```

### Enabling curl and SOAP

[](#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
--------

[](#packages)

Source code can be found at [bitbucket repository](https://bitbucket.tornevall.net/projects/LIB/repos/tornelib-php-netcurl/browse), to make upgrading more stable. It is mirrored to [github](https://github.com/Tornevall/tornelib-php-netcurl) but new releases and tags are submitted (when ready) to [github](https://github.com/Tornevall/tornelib-php-netcurl) to maintain maximum stability (do we trust bitbucket? yes - our own server).

Contact, information and documents
----------------------------------

[](#contact-information-and-documents)

Documentation for v6.1 is located [here](https://docs.tornevall.net/display/TORNEVALL/NETCURLv6.1). There's a [Mailinglist](https://lists.tornevall.net/pipermail/netcurl/) put up for everything concerning netcurl. That's also where you can find release information (for now). You can subscribe to the list [here](https://lists.tornevall.net/mailman/listinfo/netcurl). Feel free to join the project from [JIRA](https://tracker.tornevall.net/projects/NETCURL). And don't be afraid of leaving feedback!

Getting started
===============

[](#getting-started)

- [MODULE\_CURL 6.1](https://docs.tornevall.net/display/TORNEVALL/NETCURLv6.1)
- [Getting started: Individual Modules](https://docs.tornevall.net/x/EAB4Aw)

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

Compatibility
-------------

[](#compatibility)

This library do support PHP 5.6 (not lower). However, you should [check here](https://www.php.net/supported-versions.php) to ensure your compatiblity yourself).

Testing: Bamboo, github actions and bitbucket pipelines
-------------------------------------------------------

[](#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.

- [Atlassian Bamboo - 5.6 - 8.0](https://bamboo.tornevall.net/browse/TOR-NC60)
- [GitHub Actions - 5.6 + 7.3 - 8.0](https://github.com/Tornevall/tornelib-php-netcurl/actions)
- [Bitbucket Pipelines - 5.6 + 7.3 - 8.0](https://bitbucket.org/tornevallnetworks/tornelib-php-netcurl/addon/pipelines/home)

The [Bamboo-server](https://bamboo.tornevall.net) 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

[](#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
--------------------

[](#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
---------------

[](#library-support)

### Current

[](#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?

[](#will-you-support-sockets)

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

Will something break if I upgrade?
----------------------------------

[](#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  before deciding to run anything as older PHP-releases could be incompatible. However, if they are, so are probably you.

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance46

Moderate activity, may be stable

Popularity28

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

Top contributor holds 99.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~62 days

Recently: every ~118 days

Total

45

Last Release

417d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5044832?v=4)[Thomas Tornevall](/maintainers/Tornevall)[@Tornevall](https://github.com/Tornevall)

---

Top Contributors

[![Tornevall](https://avatars.githubusercontent.com/u/5044832?v=4)](https://github.com/Tornevall "Tornevall (1015 commits)")[![onboarding-resurs](https://avatars.githubusercontent.com/u/90617661?v=4)](https://github.com/onboarding-resurs "onboarding-resurs (1 commits)")

---

Tags

curlcurl-librarycurlphpphp-streamrssrss-feedrss-feed-parserrss-parserrss-readersoapsoap-clientsoap-web-servicesstreamstreams

### Embed Badge

![Health badge](/badges/tornevall-tornelib-php-netcurl/health.svg)

```
[![Health](https://phpackages.com/badges/tornevall-tornelib-php-netcurl/health.svg)](https://phpackages.com/packages/tornevall-tornelib-php-netcurl)
```

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78026.4M414](/packages/react-http)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48347.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84310.1M71](/packages/smi2-phpclickhouse)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
