PHPackages                             socket/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. socket/connect

ActiveLibrary

socket/connect
==============

Connect to flow on the viasocket.com

v1.0.1(9y ago)019MITPHPPHP ^5.3.3 || ^7.0

Since Dec 22Pushed 9y ago3 watchersCompare

[ Source](https://github.com/viasocket/socket-php)[ Packagist](https://packagist.org/packages/socket/connect)[ RSS](/packages/socket-connect/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

\#SoktAPI Connect - PHP SDK

This SDK allows you to connect to Socket flow from your php app. To start off, follow the following guide:

[![MIT Licence](https://camo.githubusercontent.com/57a78e9d793bcdcd334210014933764596fd7d9d8cc032452d6859527053280d/68747470733a2f2f6261646765732e66726170736f66742e636f6d2f6f732f6d69742f6d69742e706e673f763d313033)](https://opensource.org/licenses/mit-license.php)[![forthebadge](https://camo.githubusercontent.com/0500e27fcd4b4f7e01d2adc0aa3f86ccf34c369c2297ec3acd9fe06320a47d52/687474703a2f2f666f7274686562616467652e636f6d2f696d616765732f6261646765732f6275696c742d62792d646576656c6f706572732e737667)](http://forthebadge.com)

\##Set-up:

First of all, download the sdk by composer:

```
composer require socket/connect

or add this into your composer.json
  "require": {
          "socket/connect": "^1.0"
      }

```

Then, require composer autoload and use package in your code:

```
require __DIR__ . '/vendor/autoload.php';

use sokt\sokt;

```

Once required, the last step is to initialize the SDK with your project name and project API Key:

```
$sokt = new sokt('PROJECT_NAME', 'AUTH_KEY');

```

That's all, your SDK is set up! You can now use any block by copying the code snippet from the marketplace.

\##Usage:

```
print_r($sokt->call('Flow-Identifier', 'Flow Name', ['Name' => "Barney", 'Phone' => 911]));

```

The printed result will be:

```
Array
(
    [success] => 1
    [invocation_id] => "xxxxxxxxxx"
    [response_url] => api.viasocket.com/response/xxxxxxxxxx.json
)

```

**Notice** that the `error` event will also be called if you make an invalid flow call (for example - the flow you refer to does not exist).

\##Issues:

As this is a pre-release version of the SDK, you may expirience bugs. Please report them in the issues section to let us know. You may use the intercom chat on viasocket.com for support at any time.

\##Licence:

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3431d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/87470a418e44319c9b4984de07816ba2504b884d4504291f54aa3cb0598a7932?d=identicon)[socket](/maintainers/socket)

---

Top Contributors

[![PriyankaPathak](https://avatars.githubusercontent.com/u/2380584?v=4)](https://github.com/PriyankaPathak "PriyankaPathak (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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