承接 fyrts/psr-4-case-checker 相关项目开发

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

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

fyrts/psr-4-case-checker

Composer 安装命令:

composer require fyrts/psr-4-case-checker

包简介

Filename validator for PSR-4 autoloader case-sensitivity issues.

README 文档

README

Developing a project that uses a PSR-4 autoloader on an environment with a case-insensitive filesystem could cause issues on deployment, as typos in filenames might not be spotted before they're pushed to case-sensitive production environments. This little PHP library keeps an eye on the casing of your filenames during development, and throws an exception when it spots any mismatches.

Installation

The package is currently only supported in projects that make use of Composer:

composer require fyrts/psr-4-case-checker --dev

It is discouraged to use the package for production purposes, as it might have a perceptible impact on performance.

Usage

No configuration or initialization is required, as the package is loaded automatically by Composer.

Any casing inconsistencies in classnames or namespaces will cause the package to throw an exception of type PSR4CaseChecker\ClassnameCasingException.

// The following would trigger an exception
$result = MyClass::method(); // MyClass being stored in myClass.php

// Incorrect namespaces would also trigger an exception
$result = \MyNamespace\MyClass::method(); // MyClass being stored in mynamespace/MyClass.php

License

fyrts/psr-4-case-checker is licensed under the MIT License (MIT). Please see LICENSE for more information.

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固