Git Product home page Git Product logo

arabic-laravel's Introduction

arabic-laravel

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

Installation

With Composer

$ composer require ahmedsaoud31/arabic-laravel dev-master

or

{
    "require": {
        "ahmedsaoud31/arabic-laravel": "dev-master"
    }
}
run command "composer update" in your project root

Use

Ex1:

	use Arabic\Arabic;
	...
	$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 أشهر

arabic-laravel's People

Contributors

ahmedsaoud31 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.