承接 zero-to-prod/psr4-varname 相关项目开发

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

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

zero-to-prod/psr4-varname

最新稳定版本:v2.1.0

Composer 安装命令:

composer require zero-to-prod/psr4-varname

包简介

Generates a valid PSR-4 Compliant variable name from a string.

README 文档

README

Repo GitHub Actions Workflow Status GitHub Actions Workflow Status Packagist Downloads php Packagist Version License wakatime Hits-of-Code

Introduction

Generates a valid PSR-4 Compliant variable name from a string.

Requirements

  • PHP 7.1 or higher.

Installation

Install Zerotoprod\Psr4VarName via Composer:

composer require zero-to-prod/psr4-varname

This will add the package to your project's dependencies and create an autoloader entry for it.

Documentation Publishing

You can publish this README to your local documentation directory.

This can be useful for providing documentation for AI agents.

This can be done using the included script:

# Publish to default location (./docs/zero-to-prod/psr4-varname)
vendor/bin/zero-to-prod-psr4-varname

# Publish to custom directory
vendor/bin/zero-to-prod-psr4-varname /path/to/your/docs

Automatic Documentation Publishing

You can automatically publish documentation by adding the following to your composer.json:

{
    "scripts": {
        "post-install-cmd": [
            "zero-to-prod-psr4-varname"
        ],
        "post-update-cmd": [
            "zero-to-prod-psr4-varname"
        ]
    }
}

Usage

use Zerotoprod\Psr4Classname\VarName;

VarName::generate('weird%characters*in^name'); // 'weird_characters_in_name';

Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page if you want to contribute.

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Commit changes (git commit -m 'Add some feature').
  4. Push to the branch (git push origin feature-branch).
  5. Create a new Pull Request.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-01-01