PHPackages                             sukohi/shellless - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. sukohi/shellless

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

sukohi/shellless
================

A PHP package to extract readable text from HTML.

1.0.0(9y ago)030MITPHP

Since Mar 13Pushed 9y ago1 watchersCompare

[ Source](https://github.com/SUKOHI/Shellless)[ Packagist](https://packagist.org/packages/sukohi/shellless)[ RSS](/packages/sukohi-shellless/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (3)Used By (0)

Shellless
=========

[](#shellless)

A PHP package to extract readable text from HTML.

Installation
============

[](#installation)

Execute the next command.

```
composer require sukohi/shellless:1.*

```

Usage
=====

[](#usage)

```
use Sukohi\Shellless\Shellless;

$html = file_get_contents('http://example.com/');
$shellless = new Shellless();
$result = $shellless->extract($html);

echo $result->title;        // Page title

echo $result->best_text;    // The longest text

echo $result->full_text;    // Joined text if more than 100 characters length.

print_r($result->all_texts, true);

```

Options
=======

[](#options)

```
$shellless->setOptions([
    'join_step' => 5,
    'min_text_length' => 100
]);

```

Algorithm
=========

[](#algorithm)

1. Join close texts if less than 5 HTML tags between them.
2. Pick up texts if more than 100 characters length.

License
=======

[](#license)

This package is licensed under the MIT License.
Copyright 2017 Sukohi Kuhoh

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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

Every ~0 days

Total

2

Last Release

3398d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2980d59b309d45df3f2e6e51b1d336614da063240b8f76f873f287cd745ec5db?d=identicon)[Sukohi](/maintainers/Sukohi)

---

Top Contributors

[![SUKOHI](https://avatars.githubusercontent.com/u/5362394?v=4)](https://github.com/SUKOHI "SUKOHI (2 commits)")

### Embed Badge

![Health badge](/badges/sukohi-shellless/health.svg)

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

###  Alternatives

[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19139.2M45](/packages/mck89-peast)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9843.5k](/packages/sauladam-shipment-tracker)[jstewmc/rtf

Read and write Rich Text Format (RTF) documents with PHP

45153.1k6](/packages/jstewmc-rtf)[tcds-io/php-jackson

A lightweight, flexible object serializer for PHP, inspired by FasterXML/jackson

113.2k10](/packages/tcds-io-php-jackson)

PHPackages © 2026

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