Download the PHP package agashe/arabic-date without Composer

On this page you can find all versions of the php package agashe/arabic-date. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package arabic-date

ArabicDate

A PHP Package to handle hijri/gregorian calendar in both arabic and english

Features

Installation

Documentation

ArabicDate hijri converter depends on Kuwati Algorithm , in it's core a single class with few setters/gettes to configure your result.

After installation is done , include the class in your project by:

This table demonstrate the basic three setters , we use to initialize ArabicDate

Method Parameter Options Description
setCalendar string 'hijri', 'gregorian' Select the calendar
setLanguage string 'arabic', 'english' Select the language
setFormat string Check the table below Select the date format pattern

ArabicDate uses the default PHP date format characters , this table shows all supported characters in hijri calendar. (for gregorian calendar , all characters work normally !!)

Format character Description
d Day of the month, 2 digits with leading zeros
D A textual representation of a day
j Day of the month without leading zeros
m Numeric representation of a month, with leading zeros
M A textual representation of a month
n Numeric representation of a month, without leading zeros
y A two digit representation of a year
Y A full numeric representation of a year, 4 digits
h 12-hour format of an hour with leading zeros
H 24-hour format of an hour with leading zeros
i Minutes with leading zeros
s Seconds with leading zeros
a/A AM/PM , but in arabic there's no lowercase and uppercase
so they both are the same!

This is the basic example for using ArabicDate

Examples

License

(ArabicDate) released under the terms of the MIT license.


All versions of arabic-date with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package agashe/arabic-date contains the following files

Loading the files please wait ....