PHPackages                             pear/net\_socket - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. pear/net\_socket

AbandonedLibrary[Utility &amp; Helpers](/categories/utility)

pear/net\_socket
================

More info available on: http://pear.php.net/package/Net\_Socket

v1.2.2(11y ago)173.3M—2.5%186PHP LicensePHP

Since Feb 20Pushed 1mo ago14 watchersCompare

[ Source](https://github.com/pear/Net_Socket)[ Packagist](https://packagist.org/packages/pear/net_socket)[ RSS](/packages/pear-net-socket/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (6)Used By (6)

Net\_Socket - Network Socket Interface
======================================

[](#net_socket---network-socket-interface)

[![Build Status](https://camo.githubusercontent.com/0a29e58fecc40e87fb6f5ba5ac01793565135c6855e12b43e271372b30087174/68747470733a2f2f7472617669732d63692e6f72672f706561722f4e65745f536f636b65742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/pear/Net_Socket)

Net\_Socket is a class interface to TCP sockets. It provides blocking and non-blocking operation, with different reading and writing modes (byte-wise, block-wise, line-wise and special formats like network byte-order ip addresses).

[Homepage](http://pear.php.net/package/Net_Socket/)

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

[](#installation)

For a PEAR installation that downloads from the PEAR channel:

`$ pear install pear/net_socket`

For a PEAR installation from a previously downloaded tarball:

`$ pear install Net_Socket-*.tgz`

For a PEAR installation from a code clone:

`$ pear install package.xml`

For a local composer installation:

`$ composer install`

To add as a dependency to your composer-managed application:

`$composer require pear/net_socket`

Tests
-----

[](#tests)

Run the tests from a local composer installation:

`$ ./vendor/bin/phpunit`

License
-------

[](#license)

BSD-2 license

###  Health Score

56

—

FairBetter than 98% of packages

Maintenance59

Moderate activity, may be stable

Popularity53

Moderate usage in the ecosystem

Community32

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~285 days

Total

5

Last Release

3329d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/120511?v=4)[Michael Gauthier](/maintainers/gauthierm)[@gauthierm](https://github.com/gauthierm)

---

Top Contributors

[![ashnazg](https://avatars.githubusercontent.com/u/100170?v=4)](https://github.com/ashnazg "ashnazg (22 commits)")[![alecpl](https://avatars.githubusercontent.com/u/546788?v=4)](https://github.com/alecpl "alecpl (17 commits)")[![CloCkWeRX](https://avatars.githubusercontent.com/u/365751?v=4)](https://github.com/CloCkWeRX "CloCkWeRX (13 commits)")[![cweiske](https://avatars.githubusercontent.com/u/59036?v=4)](https://github.com/cweiske "cweiske (3 commits)")[![till](https://avatars.githubusercontent.com/u/27003?v=4)](https://github.com/till "till (3 commits)")[![stigsb](https://avatars.githubusercontent.com/u/169939?v=4)](https://github.com/stigsb "stigsb (3 commits)")[![leithoff](https://avatars.githubusercontent.com/u/1982846?v=4)](https://github.com/leithoff "leithoff (2 commits)")[![mj](https://avatars.githubusercontent.com/u/5277?v=4)](https://github.com/mj "mj (2 commits)")[![roelvanmeer](https://avatars.githubusercontent.com/u/11042467?v=4)](https://github.com/roelvanmeer "roelvanmeer (1 commits)")[![rspadim](https://avatars.githubusercontent.com/u/2468782?v=4)](https://github.com/rspadim "rspadim (1 commits)")[![jpswade](https://avatars.githubusercontent.com/u/1087963?v=4)](https://github.com/jpswade "jpswade (1 commits)")[![endelwar](https://avatars.githubusercontent.com/u/28512?v=4)](https://github.com/endelwar "endelwar (1 commits)")[![tvvcox](https://avatars.githubusercontent.com/u/743820?v=4)](https://github.com/tvvcox "tvvcox (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pear-net-socket/health.svg)

```
[![Health](https://phpackages.com/badges/pear-net-socket/health.svg)](https://phpackages.com/packages/pear-net-socket)
```

###  Alternatives

[pear/pear-core-minimal

Minimal set of PEAR core files to be used as composer dependency

8073.0M70](/packages/pear-pear-core-minimal)

PHPackages © 2026

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