PHPackages                             sowasit/client-php - 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. [API Development](/categories/api)
4. /
5. sowasit/client-php

ActiveLibrary[API Development](/categories/api)

sowasit/client-php
==================

Official SoWasIt PHP client library for blockchain operations

0.2.1(2w ago)02↓100%MITPHPPHP ^7.4 || ^8.0

Since Mar 5Pushed 2w agoCompare

[ Source](https://github.com/sowasit/client-php)[ Packagist](https://packagist.org/packages/sowasit/client-php)[ RSS](/packages/sowasit-client-php/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (3)Versions (2)Used By (0)

SoWasIt PHP Client Library
==========================

[](#sowasit-php-client-library)

Official PHP client for integrating SoWasIt blockchain into your applications. Create blocks when events happen, store immutable records of your app's actions, and let the SoWasIt dashboard handle verification and management.

**Perfect for:** Recording user actions, transaction logs, audit trails, IoT sensor data, or any immutable event tracking.

**Website:** [sowasit.io](https://sowasit.io)
**Dashboard:** [sowasit.io/dashboard](https://sowasit.io/dashboard)

---

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

[](#installation)

### Step 0: Check Requirements (Optional)

[](#step-0-check-requirements-optional)

If you're not sure whether your environment meets the requirements, run our diagnostic script:

#### On Linux/macOS:

[](#on-linuxmacos)

```
curl -sS https://raw.githubusercontent.com/sowasit/client-php/main/check-requirements.sh | bash
# Or if you've cloned the repository:
./check-requirements.sh
```

#### On Windows:

[](#on-windows)

```
# Download and run the batch file
curl -sS https://raw.githubusercontent.com/sowasit/client-php/main/check-requirements.cmd -o check-requirements.cmd
check-requirements.cmd

```

The script will verify:

✅ PHP version (7.4 or higher required)

✅ Required extensions (intl, curl, mbstring, json)

✅ Composer installation

🔧 Provide installation instructions if anything is missing

### Step 1: Install via Composer

[](#step-1-install-via-composer)

```
composer require sowasit/client-php
```

> **Requires** PHP 7.4+ with `ext-openssl` (enabled by default on most PHP installations) and `php-intl`.

### Step 2: Create Your API Key

[](#step-2-create-your-api-key)

This library uses **API Key** authentication (stateless, backend-to-backend):

1. Go to
2. Create an account and log in
3. In your dashboard, click **"API Keys"**
4. Click **"Create New API Key"**
5. Copy the key (it's shown only once!)

**Create your own chain:**

All users can create their own private chains in the dashboard:

- **Free plan**: 1 private chain included
- **Starter plan**: Up to 5 private chains
- **Pro plan**: Up to 20 private chains
- **Business plan**: Unlimited private chains

### Step 3: Create a `.env` File (Optional)

[](#step-3-create-a-env-file-optional)

Create a file named `.env` in your project folder:

```
SOWASIT_API_URL=https://api.sowasit.io/v1
SOWASIT_API_KEY=live_xxxxx

```

---

Quick Start
-----------

[](#quick-start)

### Basic Authentication

[](#basic-authentication)

```
