PHPackages                             orkan/utils - 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. orkan/utils

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

orkan/utils
===========

Helper functions

13.1.0(8mo ago)02464MITPHPPHP ^7.4

Since Sep 5Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/orkan/utils)[ Packagist](https://packagist.org/packages/orkan/utils)[ Docs](https://github.com/orkan/utils)[ RSS](/packages/orkan-utils/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (3)Versions (29)Used By (4)

Utils `v13.1.0`
===============

[](#utils-v1310)

Bunch of scripts collected from all around the HDD

Console app
===========

[](#console-app)

`src/Application.php`

Simple, configurable, extendable, easy to use CLI app implementation.

Usage
-----

[](#usage)

```
// Define app config and modules
$Factory = new Factory([
	'app_title'   => 'My CLI app',
]);

// Initialize PHP env, load cmd line switches, set error handlers, etc...
$App = new Application( $Factory );
$App->run();

// Do something!
$Factory->Logger()->notice( 'Hello from ' . $Factory->get( 'app_title' ) );
```

See included tools in /bin dir for more examples.

FORM Input generator
====================

[](#form-input-generator)

`src/Input.php`

HTML/PHP `` input parser. Allows automatic import of values form POST like data arrays with value filtering. Allows rendering html input elements straight from php array.

Usage
-----

[](#usage-1)

Define:

```
$fields = [
	'text' => [
		'type'   => 'text',
		'filter' => 'strtoupper',
	],
	'radios' => [
		'type'   => 'radio',
		'defval' => 'radC',
		'items'  => [
			'radA' => 'Tag A',
			'radB' => 'Tag B',
			'radC' => 'Tag C',
		],
	],
];
```

Parse:

```
foreach ( $fields as $name => $field ) {
	$Input = new Input( $field, $_POST ); // Create Input with value extracted from POST array
	saveDB( $name, $Input->val() ); // Save filtered value to DB
	echo $Input->getContents(); // Render element on HTML page
}
```

Thumbnail generator
===================

[](#thumbnail-generator)

`src/Thumbnail.php`

@todo Add description...

PHP cli apps
============

[](#php-cli-apps)

- `bin/app_env_switch.php` - Switch between multiple configuration files.
- `bin/app_files_quantity.php` - Copy files from one dir to another with quantity limit and sorting features.

About
-----

[](#about)

### Third Party Packages

[](#third-party-packages)

- none

### Installation

[](#installation)

`$ composer require orkan/utils`

### Author

[](#author)

[Orkan](https://github.com/orkan)

### License

[](#license)

MIT

### Updated

[](#updated)

Fri, 19 Sep 2025 06:15:21 +02:00

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance62

Regular maintenance activity

Popularity11

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity65

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

Recently: every ~43 days

Total

28

Last Release

242d ago

Major Versions

8.1.0 → 9.0.02024-05-17

9.1.0 → 10.0.02025-03-03

10.2.0 → 11.0.02025-03-15

11.4.0 → 12.0.02025-04-11

12.0.0 → 13.0.02025-09-18

PHP version history (2 changes)1.0.0PHP &gt;=5.2

10.0.0PHP ^7.4

### Community

Maintainers

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

---

Top Contributors

[![orkan](https://avatars.githubusercontent.com/u/129182?v=4)](https://github.com/orkan "orkan (144 commits)")

---

Tags

apache-antappapplicationbatch-scriptcliconsolephpphpgitantbat

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/orkan-utils/health.svg)

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

###  Alternatives

[nunomaduro/termwind

It's like Tailwind CSS, but for the console.

2.5k239.8M286](/packages/nunomaduro-termwind)[projektgopher/whisky

A simple CLI tool for managing a project's git hooks across multiple members.

241281.3k20](/packages/projektgopher-whisky)[nunomaduro/laravel-console-task

Laravel Console Task is a output method for your Laravel/Laravel Zero commands.

2582.1M11](/packages/nunomaduro-laravel-console-task)[mahocommerce/maho

Free and open source ecommerce platform, created in 2024 on the M1 platform, PHP 8.3+

1322.1k12](/packages/mahocommerce-maho)[alecrabbit/php-cli-snake

Lightweight cli spinner with zero dependencies

29211.3k5](/packages/alecrabbit-php-cli-snake)

PHPackages © 2026

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