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 7mo 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 today

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

16

—

LowBetter than 4% of packages

Maintenance44

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://avatars.githubusercontent.com/u/29656347?v=4)[Abraham.Catalyst](/maintainers/abramcatalyst)[@abramcatalyst](https://github.com/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

[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)[thettler/laravel-console-toolkit

This Package provides some usefully console features like the attribute syntax for arguments and options, validation, auto ask and casting.

324.1k](/packages/thettler-laravel-console-toolkit)

PHPackages © 2026

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