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.2.0(1mo ago)02474MITPHPPHP ^7.4

Since Sep 5Pushed 1mo 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 3w ago

READMEChangelogDependencies (6)Versions (30)Used By (4)

Utils `v13.2.0`
===============

[](#utils-v1320)

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)

Thu, 28 May 2026 19:26:56 +02:00

###  Health Score

49

—

FairBetter than 94% of packages

Maintenance93

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity66

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

Recently: every ~104 days

Total

29

Last Release

35d 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://avatars.githubusercontent.com/u/129182?v=4)[orkan](/maintainers/orkan)[@orkan](https://github.com/orkan)

---

Top Contributors

[![orkan](https://avatars.githubusercontent.com/u/129182?v=4)](https://github.com/orkan "orkan (145 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

[symfony/symfony

The Symfony PHP framework

31.4k87.2M2.2k](/packages/symfony-symfony)[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k251.7M11.6k](/packages/symfony-framework-bundle)[drush/drush

Drush is a command line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those of us who spend some of our working hours hacking away at the command prompt.

2.4k60.6M804](/packages/drush-drush)[symfony/security-bundle

Provides a tight integration of the Security component into the Symfony full-stack framework

2.5k185.6M2.4k](/packages/symfony-security-bundle)[symfony/web-profiler-bundle

Provides a development tool that gives detailed information about the execution of any request

2.3k160.5M1.2k](/packages/symfony-web-profiler-bundle)[projektgopher/whisky

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

242362.3k23](/packages/projektgopher-whisky)

PHPackages © 2026

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