PHPackages                             cryodrift/shell - 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. [CLI &amp; Console](/categories/cli)
4. /
5. cryodrift/shell

ActiveLibrary[CLI &amp; Console](/categories/cli)

cryodrift/shell
===============

Shell - Command Line Utilities

0.1.29(4mo ago)00MITPHPPHP &gt;=8.4

Since Jan 15Pushed 4mo agoCompare

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

READMEChangelogDependencies (1)Versions (30)Used By (0)

cryodrift/shell
===============

[](#cryodriftshell)

Shell - Command Line Utilities
==============================

[](#shell---command-line-utilities)

Shell is a collection of command-line utilities for text processing, file manipulation, and web page screenshot capture.

Features
--------

[](#features)

### Text Processing

[](#text-processing)

- Remove duplicate lines from text
- Sort lines alphabetically
- Group lines by tokens

### File Manipulation

[](#file-manipulation)

- Replace text in files
- Process piped input

### Web Utilities

[](#web-utilities)

- Capture screenshots of web pages using Chrome

CLI Commands
------------

[](#cli-commands)

### Text Processing

[](#text-processing-1)

#### undupe

[](#undupe)

Removes duplicate lines from input.

```
php index.php /shell undupe -file="filename.txt"

```

or

```
cat filename.txt | php index.php /shell undupe -file

```

#### sort

[](#sort)

Sorts lines alphabetically.

```
php index.php /shell sort -file="filename.txt"

```

or

```
cat filename.txt | php index.php /shell sort -file

```

#### group

[](#group)

Groups lines by tokens.

```
php index.php /shell group -file="filename.txt"

```

or

```
cat filename.txt | php index.php /shell group -file

```

### File Manipulation

[](#file-manipulation-1)

#### replace

[](#replace)

Replaces text in a file or piped data.

```
php index.php /shell replace -search="searchstring" -replace="replacestring" -file="filename.txt"

```

or

```
dir | php index.php /shell replace "searchstring" "replacestring" -file

```

When using a file, the output is saved to `filename.txt.new`.

### Web Utilities

[](#web-utilities-1)

#### screenshot

[](#screenshot)

Takes a screenshot of a web page using Chrome.

```
php index.php /shell screenshot -url="/"

```

Options:

- `-small` - Capture a smaller screenshot (800x600 instead of 1920x1200)

The screenshot is saved to `out.jpg` in the project root directory.

Setup and Configuration
-----------------------

[](#setup-and-configuration)

1. Ensure PHP is installed and configured
2. For the screenshot functionality, Google Chrome must be installed in the default location

Development
-----------

[](#development)

The Shell component uses the `CliHandler` trait to process command-line arguments and provide a consistent interface for all commands.

License
-------

[](#license)

This project is proprietary software.

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance74

Regular maintenance activity

Popularity0

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

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 ~1 days

Recently: every ~6 days

Total

29

Last Release

141d ago

### Community

Maintainers

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

### Embed Badge

![Health badge](/badges/cryodrift-shell/health.svg)

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

###  Alternatives

[illuminate/console

The Illuminate Console package.

13046.0M6.5k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

71470.5k9](/packages/styleci-cli)[winbox/args

Windows command-line formatter

20720.9k21](/packages/winbox-args)[tomatophp/filament-artisan

Simple but yet powerful library for running some artisan commands for FilamentPHP

3275.4k1](/packages/tomatophp-filament-artisan)

PHPackages © 2026

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