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

ActiveLibrary[API Development](/categories/api)

pltext/sdk
==========

A simple PHP wrapper for the PLText API.

00PHP

Since Sep 16Pushed 9mo agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

PLText PHP Client
=================

[](#pltext-php-client)

A simple PHP wrapper for the PLText API.

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

[](#installation)

You can install the package via [Composer](https://getcomposer.org/).

```
composer require pltext/sdk
```

Usage
-----

[](#usage)

First, ensure you have your PLText API key. You can provide it directly or load it from a `.env` file using a library like `vlucas/phpdotenv`.

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

use Dotenv\Dotenv;
use Pltext\Pltext;

// Example of loading from a .env file
$dotenv = Dotenv::createImmutable(__DIR__);
$dotenv->load();
$apiKey = $_ENV['PLTEXT_API_KEY'];

// Or, provide the key directly:
$apiKey = "your_pltext_api_key_here";
$client = new Pltext($apiKey);

$content = "This is the text content you want to check for plagiarism.";

try {
    $result = $client->checkContent($content);
    print_r($result);
} catch (Exception $e) {
    echo 'Error: ' . $e->getMessage();
}
```

Local Development
-----------------

[](#local-development)

For local development, you can create a `.env` file in the project root. Your application code (like in `example.php`) is responsible for loading these variables.

```
PLTEXT_API_KEY=your_pltext_api_key_here
PLTEXT_API_URL=http://localhost:5033/api/v1/check

```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance40

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity14

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/232608109?v=4)[pltext](/maintainers/pltext)[@pltext](https://github.com/pltext)

---

Top Contributors

[![sumit-tess](https://avatars.githubusercontent.com/u/187896197?v=4)](https://github.com/sumit-tess "sumit-tess (2 commits)")

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/pltext-sdk/health.svg)](https://phpackages.com/packages/pltext-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)
