承接 saboohy/argv 相关项目开发

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

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

saboohy/argv

Composer 安装命令:

composer require saboohy/argv

包简介

A lightweight and developer-friendly PHP library for parsing command-line arguments.

README 文档

README

Argv is a lightweight PHP library for parsing command-line arguments ($argv). It provides a simple API for extracting commands, options, flags, and arguments from CLI input.

Features

  • Parse commands from CLI input
  • Extract options and flags
  • Access positional arguments easily
  • Simple and intuitive API
  • Zero dependencies
  • PHP 8.2+ compatible

Requirements

  • PHP 8.2+
  • Composer

Installation

Install the package via Composer:

composer require saboohy/argv

Quick Start

<?php

use Saboohy\Argv\Input;

$input = new Input($argv);

print_r($input->getOptions());
print_r($input->getCommand());
print_r($input->getFlags());
print_r($input->getArguments());

License

This project is licensed under the MIT License.

Support

If you have any questions, issues, or feature requests, please open an issue on GitHub.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固