PHPackages                             swissfreecommerce/connect - 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. [Queues &amp; Workers](/categories/queues)
4. /
5. swissfreecommerce/connect

ActiveLibrary[Queues &amp; Workers](/categories/queues)

swissfreecommerce/connect
=========================

Simple Http Connection with fast cgi client

1.5(3y ago)098MITPHPPHP &gt;=8.0

Since Sep 17Pushed 3y ago2 watchersCompare

[ Source](https://github.com/swissfreecommerce/connect)[ Packagist](https://packagist.org/packages/swissfreecommerce/connect)[ RSS](/packages/swissfreecommerce-connect/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (7)Used By (0)

Swiss Free Commerce Connect (Fast CGI Client)
=============================================

[](#swiss-free-commerce-connect-fast-cgi-client)

This package is used to connect microservices to each other and can be used to make http requests between them through socket.

Any http request including get, post, put, delete, and patch that they want together can be handled with it.

---

This package is a simplified version of the [hollodotme/fast-cgi-client](https://github.com/hollodotme/fast-cgi-client) package.

Because working with this package was more difficult than expected, we simplified this package and created a JSON connection between microservices as follows.

Install via composer
--------------------

[](#install-via-composer)

Run the following command to pull in the latest version:

```
composer require swissfreecommerce/connect
```

Documentation
-------------

[](#documentation)

### variable name

[](#variable-name)

### Get Request

[](#get-request)

To send the get request, you must run the following command

```
use SwissFreeCommerce\Connect\Connection\Json;

$connectJson = new Json(script_file_name, hostname, port);

$connectJson->get('url address', 'array query params', 'another http variable');
```

### Post Request

[](#post-request)

To send the post request, you must run the following command

```
use SwissFreeCommerce\Connect\Connection\Json;

$connectJson = new Json(script_file_name, hostname, port);

$connectJson->post('url address', 'array params form data', 'array query params', 'another http variable');
```

### Put Request

[](#put-request)

To send the put request, you must run the following command

```
use SwissFreeCommerce\Connect\Connection\Json;

$connectJson = new Json(script_file_name, hostname, port);

$connectJson->put('url address', 'array params form data', 'array query params', 'another http variable');
```

### Output Data

[](#output-data)

The output of all parts is as follows

```
{
    'status': 'status request, for example: 200 or 401',
    'body': 'response body object'
}
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~13 days

Total

6

Last Release

1316d ago

PHP version history (2 changes)1.0PHP ^8.0.2

1.5PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/a4010e94a2d2060d0368a9889a1002e7922a67ae4b919d5ed8493a9b897c95f0?d=identicon)[swissfreecommerce](/maintainers/swissfreecommerce)

---

Top Contributors

[![MajidMohammadian](https://avatars.githubusercontent.com/u/2099965?v=4)](https://github.com/MajidMohammadian "MajidMohammadian (7 commits)")

---

Tags

asyncSocketfastcgiphp-fpmconnect

### Embed Badge

![Health badge](/badges/swissfreecommerce-connect/health.svg)

```
[![Health](https://phpackages.com/badges/swissfreecommerce-connect/health.svg)](https://phpackages.com/packages/swissfreecommerce-connect)
```

###  Alternatives

[hollodotme/fast-cgi-client

A PHP fast CGI client to send requests (a)synchronously to PHP-FPM.

56426.4M33](/packages/hollodotme-fast-cgi-client)[react/socket

Async, streaming plaintext TCP/IP and secure TLS socket server and client connections for ReactPHP

1.3k135.6M459](/packages/react-socket)[revolt/event-loop

Rock-solid event loop for concurrent PHP applications.

92553.8M226](/packages/revolt-event-loop)[amphp/parallel

Parallel processing component for Amp.

85251.9M98](/packages/amphp-parallel)[amphp/socket

Non-blocking socket connection / server implementations based on Amp and Revolt.

26646.6M150](/packages/amphp-socket)[amphp/sync

Non-blocking synchronization primitives for PHP based on Amp and Revolt.

19161.0M53](/packages/amphp-sync)

PHPackages © 2026

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