amirhxssein/persian-digit 问题修复 & 功能扩展

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

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

amirhxssein/persian-digit

Composer 安装命令:

composer require amirhxssein/persian-digit

包简介

A simple tool for converting Persian digits to English digits and vice versa.

README 文档

README

Description

This PHP package allows you to convert Persian digits to English digits and vice versa. It's a handy tool for developers working with Persian and English digit representations.

Installation

You can install the package via Composer. Run the following command in your terminal:

composer require amirhxssein/persian-digit

Usage

use Amiros\PersianDigit\PersianDigit;

// Persian To English
$text = '۰۱۲۳۴۵۶۷۸۹';
$convertedText = PersianDigit::convert($text);

// English to Persian
 $text = '0123456789';
 $convertedText = PersianDigit::convert($text, "fa");

License

The Laravel framework is open-sourced software licensed under the MIT license.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-04-20