PHPackages                             sdotee/sdk - 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. sdotee/sdk

ActiveLibrary[API Development](/categories/api)

sdotee/sdk
==========

PHP SDK for S.EE API

08PHP

Since Feb 2Pushed 5mo agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

S.EE PHP SDK
============

[](#see-php-sdk)

Official PHP SDK for [S.EE](https://s.ee) API, providing easy access to URL shortening, text pasting, and file services.

Requirements
------------

[](#requirements)

- PHP &gt;= 8.1
- Guzzle &gt;= 7.0

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

[](#installation)

Install via Composer:

```
composer require sdotee/sdk
```

or visit:  for more details.

Usage
-----

[](#usage)

### Initialization

[](#initialization)

```
use See\Client;

$apiKey = 'YOUR_API_KEY';
$client = new Client($apiKey);
```

### Short URL

[](#short-url)

**Create a Short URL:**

```
try {
    $result = $client->shortUrl->create('https://example.com/long/url', 's.ee', [
        'custom_slug' => 'myshort',
        'title' => 'My Link'
    ]);

    echo "Short URL: " . $result['short_url'];
} catch (\See\Exception\SeeException $e) {
    echo "Error: " . $e->getMessage();
}
```

**Update a Short URL:**

```
$client->shortUrl->update('s.ee', 'myshort', 'https://new-url.com', 'New Title');
```

**Delete a Short URL:**

```
$client->shortUrl->delete('s.ee', 'myshort');
```

### Text Paste

[](#text-paste)

**Create Text Paste:**

```
$result = $client->text->create('Hello World!', [
    'text_type' => 'markdown',
    'title' => 'My Note'
]);
echo $result['short_url'];
```

**Update Text Paste:**

```
$client->text->update('s.ee', 'myslug', 'New Content', 'New Title');
```

**Delete Text Paste:**

```
$client->text->delete('s.ee', 'myslug');
```

### File Service

[](#file-service)

**Upload File:**

```
// Upload from path
$result = $client->file->upload('/path/to/image.png', 'image.png');
echo $result['url'];
echo $result['delete']; // Delete key
```

**Delete File:**

```
$client->file->delete($deleteKey);
```

### Common

[](#common)

**Get Available Domains:**

```
$domains = $client->common->getDomains();
print_r($domains);
```

**Get Tags:**

```
$tags = $client->common->getTags();
print_r($tags);
```

Examples
--------

[](#examples)

There are example scripts in the `examples/` directory demonstrating how to use different services.

To run the examples, you need to set the `SEE_API_KEY` environment variable. Optionally, you can set `SEE_API_BASE` if you need to use a different API endpoint.

**Short URL Example:**

```
export SEE_API_KEY="your_api_key"
php examples/url.php
```

**Text Paste Example:**

```
export SEE_API_KEY="your_api_key"
php examples/text.php
```

**File Service Example:**

```
export SEE_API_KEY="your_api_key"
php examples/file.php
```

Testing
-------

[](#testing)

The project includes PHPUnit tests for each service module (`ShortUrl`, `Text`, `File`).

Run all unit tests:

```
./vendor/bin/phpunit
```

Run tests for a specific module:

```
# Test Short URL service
./vendor/bin/phpunit tests/ShortUrlTest.php

# Test Text service
./vendor/bin/phpunit tests/TextTest.php

# Test File service
./vendor/bin/phpunit tests/FileTest.php
```

License
-------

[](#license)

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance50

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity12

Early-stage or recently created project

 Bus Factor1

Top contributor holds 87.5% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/174686444?v=4)[s.ee](/maintainers/sdotee)[@sdotee](https://github.com/sdotee)

---

Top Contributors

[![mingcheng](https://avatars.githubusercontent.com/u/21816?v=4)](https://github.com/mingcheng "mingcheng (7 commits)")[![Showfom](https://avatars.githubusercontent.com/u/6773591?v=4)](https://github.com/Showfom "Showfom (1 commits)")

### Embed Badge

![Health badge](/badges/sdotee-sdk/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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