定制 ahmedsaoud31/arabic 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

ahmedsaoud31/arabic

Composer 安装命令:

composer require ahmedsaoud31/arabic

包简介

Arabic package for laravel4, arabic date, cut arabic string, arabic numer and since arabic format

README 文档

README

Updated Arabic Laravel

Arabic-laravel4

Arabic package for laravel4, arabic date, cut arabic string, arabic numer and since arabic format

#install

open composer.json file in your project root and add package require
"require": {
	...
	"ahmedsaoud31/arabic": "dev-master"
}
run command "composer update" in your project root
go to app/config/app.php and add to Providers array this line
'Ahmedsaoud31\Arabic\ArabicServiceProvider',

Use

Ex1:

	$arabicText = 'إضافة اللغة العربية لإطار العمل لارافيل';
	$len = 40;
	echo Arabic::cut($arabicText, $len);

outbuts

إضافة اللغة العربية...

Ex2:

first argument format and scound argument the time in timesstamps or strtotime php functions input format
if scound argument not set, now server time will be use
echo Arabic::adate('w j من F Y g:i A');

outbuts

٠ ١ من فبراير ٢٠١٥ ١:٠١ مساءاً

Ex3:

     echo Arabic::num('12.09');

outbuts

١٢٫٠٩

Ex4:

time format in timesstamps or strtotime php functions input format
echo 'منذ '.Arabic::since('1-1-2015');

outbuts

منذ ثوان

منذ 32 دقيقة

منذ ساعة و 20 دقيقة

منذ 10 ساعات و 10 دقائق

منذ يوم و 15 دقيقة

منذ يوم و ساعة

منذ يوم و 12 ساعة

منذ إسبوع و ثوان

منذ إسبوع و ساعة

منذ إسبوع و 5 أيام

منذ شهر و يوم

منذ شهر و إسبوع

منذ شهر و إسبوعان

منذ 10 أشهر و 6 أيام

منذ عام و إسبوع

منذ عام و شهر

منذ 3 أعوام و 5 أشهر

统计信息

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

GitHub 信息

  • Stars: 17
  • Watchers: 3
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL
  • 更新时间: 2015-01-25