承接 orkan/utils 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

orkan/utils

Composer 安装命令:

composer require orkan/utils

包简介

Helper functions

README 文档

README

Bunch of scripts collected from all around the HDD

Console app

src/Application.php

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

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

src/Input.php

HTML/PHP <form> 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

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

src/Thumbnail.php

@todo Add description...

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

Third Party Packages

  • none

Installation

$ composer require orkan/utils

Author

Orkan

License

MIT

Updated

Fri, 26 Jun 2026 16:06:14 +02:00

统计信息

  • 总下载量: 247
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 4
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-09-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固