inok/detect-cyr-encoding 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

inok/detect-cyr-encoding

最新稳定版本:1.0.0

Composer 安装命令:

composer require inok/detect-cyr-encoding

包简介

Detect Text Cyrillic Encoding

README 文档

README

License License License

This package for detecting cyrillic encoding of source text (Supports encodings: 'UTF-8', 'cp866', 'cp1251')

Installation

You can install this package by using Composer, running this command:

composer require inok/detect-cyr-encoding

Link to Packagist: https://packagist.org/packages/inok/detect-cyr-encoding

Usage

$detector = new \Inok\detectCyrEncoding\Detector();
$encoding = $detector->detect($text);

where:

  • $text - Text for detect encoding

return:

  • $encoding - string with one of detected encodings: UTF-8, cp866, cp1251

License

This package is released under the MIT license.

Copyright (c) 2023 Chizhov Nikolay

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-05-15