# SpryConnect PHP SDK - Installation Guide

## 📥 Download

Download the latest version of the SpryConnect PHP SDK from the link provided by SpryConnect support.

## ⚙️ Requirements

- PHP 8.0 or higher
- Composer

## 🚀 Installation

### Method 1: Composer Local Path (Recommended)

1. **Extract the SDK** to your project directory:
   ```bash
   unzip spryconnect-php-sdk-v1.0.0.zip
   ```

2. **Add to your `composer.json`**:
   ```json
   {
       "repositories": [
           {
               "type": "path",
               "url": "./spryconnect-php-sdk"
           }
       ],
       "require": {
           "spryconnect/php-sdk": "*"
       }
   }
   ```

3. **Install dependencies**:
   ```bash
   composer install
   ```

### Method 2: Direct Include

1. **Extract the SDK** to a location in your project

2. **Install SDK dependencies**:
   ```bash
   cd spryconnect-php-sdk
   composer install
   ```

3. **Include in your code**:
   ```php
   <?php
   require_once 'path/to/spryconnect-php-sdk/vendor/autoload.php';
   ```

## 📖 Quick Start

```php
<?php

require 'vendor/autoload.php';

use SpryConnect\SDK\SpryConnectClient;

// Initialize the client
$client = new SpryConnectClient(
    apiKey: 'your-api-key',
    apiSecret: 'your-api-secret'
);

// Send a quick SMS
$response = $client->sms->sendQuick([
    'to' => '233XXXXXXXXX',
    'from' => 'YourBrand',
    'message' => 'Hello from SpryConnect!'
]);

echo "Message sent! ID: " . $response['id'];
```

## 📚 Full Documentation

For complete API documentation and examples, see the README.md file included in the SDK package.

## 🆘 Support

- **Email:** support@spryconnect.com
- **Documentation:** https://docs.spryconnect.com

## 🔄 Updates

To update to a new version:
1. Download the new SDK version
2. Replace the old `spryconnect-php-sdk` folder
3. Run `composer update`
