PHPackages                             galloverdedev/smart-textify - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. galloverdedev/smart-textify

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

galloverdedev/smart-textify
===========================

Use OpenAI to modify a text

0.4(2y ago)25MITPHP

Since Aug 28Pushed 2y ago2 watchersCompare

[ Source](https://github.com/GalloVerdeDev/smarttextify)[ Packagist](https://packagist.org/packages/galloverdedev/smart-textify)[ Docs](https://github.com/GalloVerdeDev/smarttextify)[ RSS](/packages/galloverdedev-smart-textify/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (3)Used By (0)

SmartTextify
============

[](#smarttextify)

SmartTextify applies msart edits to your textx by using the OpenAI ChatGPT chat completion API. It provides a set of convenience moethds to eaisly shorten, expand, etc your text.

Introduction
------------

[](#introduction)

SmartTextify offers these methods to edit your text

- **shorten**: shortens your text to 50%
- **expand**: expands your text by 50%
- **formallize**: use a more formal lnaguage
- **casualize**: use a more casual language
- **keywords**: extraxt a list of x keywords
- **summarize**: creates a summary
- **translate**: translates into another language
- **glossary**: extracts a list of all abbreviations together with their ong version

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

[](#installation)

Install SmartTextify with [composer](https://getcomposer.org/doc/00-intro.md):

```
composer require galloverdedev/smart-textify

```

Configuration
-------------

[](#configuration)

You need to provide your [OpenAI Access Key](https://openai.com/product) in your .env file like

```
ST_OPENAI_API_KEY = 'mykey'

```

To you get hold of SmartTextifys config file you need to run this command:

```
php artisan smarttextify:install
```

This will put a smarttextify.php configuration file in your config folder.

Here's what you may adjust:

```
return [
    // Your OpenAI API key
    'api_key' => env('ST_OPENAI_API_KEY'),
    // The chat model to be used
    'chat_model' => 'gpt-3.5-turbo-16k-0613',
    // Sample temperatire (between 0=strict and 2=innovative)
    'sample_temperature' => 0.5,
    // The maximum number of input and output tokens per request
    'max_tokens' => 2048,
];
```

Test
----

[](#test)

Run tests via composer

```
composer test

```

Usage
-----

[](#usage)

Using the Facade

```
use GalloVerdeDev\SmartTextify\Facades\SmartTextEditor;

...

$textsample = 'Excepteur fugiat tempor nisi esse tempor proident excepteur ea enim esse aliqua. Minim dolore adipisicing culpa enim nulla aliquip deserunt enim sint. Aute cillum incididunt eu dolor sint qui ut elit ea qui qui aliqua in consectetur.';

$shortText = SmartTextEditor::shorten($textsample);

$expandedText = SmartTextEditor::expand($textsample);

$summary = SmartTextEditor::summarize($textsample);

$formalText = SmartTextEditor::formalize($textsample);

$casualText = SmartTextEditor::casualize($textsample);

$keywordlist = SmartTextEditor::keywords($textsample, 3);

$translatedText = SmartTextEditor::translate($textsample, 'latin', 'german');

$glossary = SmartTextEditor::glossary($textsample);
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity34

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

989d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d94d30a9313b12361b44bdadd2475873ecc510974327e6dd65e89f6535dc07ac?d=identicon)[GalloVerdeDev](/maintainers/GalloVerdeDev)

---

Top Contributors

[![lefrancois](https://avatars.githubusercontent.com/u/119209?v=4)](https://github.com/lefrancois "lefrancois (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/galloverdedev-smart-textify/health.svg)

```
[![Health](https://phpackages.com/badges/galloverdedev-smart-textify/health.svg)](https://phpackages.com/packages/galloverdedev-smart-textify)
```

###  Alternatives

[internal/dload

Downloads binaries.

98142.7k10](/packages/internal-dload)[pixelopen/cloudflare-turnstile-bundle

A simple package to help integrate Cloudflare Turnstile on Symfony.

31205.8k3](/packages/pixelopen-cloudflare-turnstile-bundle)[mfd/ai-filemetadata

Automatically generates FAL metadata for files by means of public LLMs

1142.1k](/packages/mfd-ai-filemetadata)

PHPackages © 2026

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