PHPackages                             abramcatalyst/php-cli-tools - 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. abramcatalyst/php-cli-tools

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

abramcatalyst/php-cli-tools
===========================

A collection of useful PHP CLI utilities (UUID, Hashing, JWT, Base64, Slugify, Timestamp, Password Generator)

00PHP

Since Nov 23Pushed 5mo agoCompare

[ Source](https://github.com/abramcatalyst/php-cli-tools)[ Packagist](https://packagist.org/packages/abramcatalyst/php-cli-tools)[ RSS](/packages/abramcatalyst-php-cli-tools/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP CLI Tools
=============

[](#php-cli-tools)

A collection of handy PHP CLI utilities for developers.

Tools
-----

[](#tools)

- **UUID Generator** - Generate UUID v4 (random UUIDs)
- **Password Hasher** - Hash passwords using bcrypt
- **JWT Maker** - Create JWT tokens with HS256 algorithm
- **Timestamp Converter** - Convert between timestamps and human-readable dates
- **Base64 Tool** - Encode/decode base64 strings
- **Slugify Tool** - Convert text to URL-friendly slugs
- **Random Password Generator** - Generate secure random passwords

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

[](#requirements)

- PHP 7.4 or higher
- Composer

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

[](#installation)

Install via Composer:

```
composer require abramcatalyst/php-cli-tools
```

Or add to your `composer.json`:

```
{
    "require": {
        "abramcatalyst/php-cli-tools": "^1.0"
    }
}
```

Usage
-----

[](#usage)

After installation, the CLI tools will be available in `vendor/bin/`:

```
# Using vendor/bin directly
./vendor/bin/uuid
./vendor/bin/hash mypassword
./vendor/bin/jwt '{"id":1}'
./vendor/bin/timestamp
./vendor/bin/base64tool encode "Hello"
./vendor/bin/slug "Hello World"
./vendor/bin/password 16
```

Or if you have Composer's bin directory in your PATH, you can use them directly:

```
uuid
hash mypassword
jwt '{"id":1}'
timestamp
base64tool encode "Hello"
slug "Hello World"
password 16
```

### UUID Generator

[](#uuid-generator)

Generate a UUID v4:

```
vendor/bin/uuid
# Output: 550e8400-e29b-41d4-a716-446655440000
```

### Password Hasher

[](#password-hasher)

Hash a password using bcrypt:

```
vendor/bin/hash mypassword
# Output: $2y$10$...

# With custom cost (4-31):
vendor/bin/hash mypassword 12
```

### JWT Maker

[](#jwt-maker)

Create a JWT token:

```
# With default secret
vendor/bin/jwt '{"id":1,"name":"John"}'

# With custom secret
vendor/bin/jwt '{"id":1,"name":"John"}' my-secret-key
```

### Timestamp Converter

[](#timestamp-converter)

Convert timestamps to dates or dates to timestamps:

```
# Show current timestamp and date
vendor/bin/timestamp

# Convert timestamp to date
vendor/bin/timestamp 1700000000
# Output: 2023-11-14 22:13:20

# Convert date to timestamp
vendor/bin/timestamp "2023-11-14 22:13:20"
# Output: 1700000000
```

### Base64 Tool

[](#base64-tool)

Encode or decode base64:

```
# Encode
vendor/bin/base64tool encode "Hello World"
# Output: SGVsbG8gV29ybGQ=

# Decode
vendor/bin/base64tool decode "SGVsbG8gV29ybGQ="
# Output: Hello World
```

### Slugify Tool

[](#slugify-tool)

Convert text to a URL-friendly slug:

```
vendor/bin/slug "Hello World!"
# Output: hello-world

vendor/bin/slug "This is a Test!!!"
# Output: this-is-a-test
```

### Random Password Generator

[](#random-password-generator)

Generate a secure random password:

```
# Default length (16 characters)
vendor/bin/password

# Custom length (1-128 characters)
vendor/bin/password 32
```

Contributing
------------

[](#contributing)

Contributions are welcome! Please feel free to submit a Pull Request.

License
-------

[](#license)

MIT License - see [LICENSE](LICENSE) file for details.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance48

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity13

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://www.gravatar.com/avatar/fd5a680aafd78b0fd7b7d82f7f2f48211f8095978c8be47c1659dc1d0a86cec0?d=identicon)[abramcatalyst](/maintainers/abramcatalyst)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/abramcatalyst-php-cli-tools/health.svg)

```
[![Health](https://phpackages.com/badges/abramcatalyst-php-cli-tools/health.svg)](https://phpackages.com/packages/abramcatalyst-php-cli-tools)
```

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.1k17.2M320](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.8M17](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)[codedungeon/php-cli-colors

Liven up you PHP Console Apps with standard colors

10210.1M26](/packages/codedungeon-php-cli-colors)

PHPackages © 2026

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