Download the PHP package enaxon/rtly-kit without Composer

On this page you can find all versions of the php package enaxon/rtly-kit. 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 rtly-kit

**English** | [فارسی](.github/README.fa.md) | [العربية (guide)](https://enaloo.com/apps/rtly-kit/docs/ar/) # RTLY-Kit **Dates, numbers and checks for Persian and Arabic PHP apps.** Jalali, Hijri and Hebrew calendars. Iranian validators. Number words, holidays and prayer times. One small package. No required dependencies. [![Install](https://img.shields.io/badge/Packagist-Install-F28D1A?logo=packagist&logoColor=white&style=for-the-badge)](https://packagist.org/packages/enaxon/rtly-kit) [![User guide](https://img.shields.io/badge/User%20guide-Read%20online-0f766e?logo=readthedocs&logoColor=white&style=for-the-badge)](https://enaloo.com/apps/rtly-kit/docs/) [![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-FFDD00?style=for-the-badge&logo=buymeacoffee&logoColor=black)](https://buymeacoffee.com/enaloo) [![CI](https://github.com/ehsanenaloo/RTLY-Kit/actions/workflows/ci.yml/badge.svg)](https://github.com/ehsanenaloo/RTLY-Kit/actions/workflows/ci.yml) [![Packagist](https://img.shields.io/packagist/v/enaxon/rtly-kit.svg?label=packagist)](https://packagist.org/packages/enaxon/rtly-kit) [![Downloads](https://img.shields.io/packagist/dt/enaxon/rtly-kit.svg)](https://packagist.org/packages/enaxon/rtly-kit) [![PHP](https://img.shields.io/badge/php-%5E8.2-777bb4.svg)](https://www.php.net/) [![Laravel](https://img.shields.io/badge/laravel-11%20%7C%2012%20%7C%2013-ff2d20.svg)](https://enaloo.com/apps/rtly-kit/docs/laravel-setup/) [![Dependencies](https://img.shields.io/badge/dependencies-none-2ea44f.svg)](#requirements) [![Docs](https://img.shields.io/badge/docs-en%20%7C%20fa%20%7C%20ar-0f766e.svg)](https://enaloo.com/apps/rtly-kit/docs/) [![License: MIT](https://img.shields.io/badge/license-MIT-yellow.svg)](LICENSE) [![GitHub stars](https://img.shields.io/github/stars/ehsanenaloo/RTLY-Kit?style=social)](https://github.com/ehsanenaloo/RTLY-Kit/stargazers)

Why this exists

Persian and Arabic PHP tools are spread over many packages. One handles Jalali dates. Another checks national codes. A third turns numbers into words. Most of them need Carbon or a whole framework.

RTLY-Kit puts the common pieces in one place. It is plain PHP. You install it, import a function and use it. There is no setup step, and the config file is optional.


Install

The helpers are namespaced functions, so they cannot clash with your own code. If you like short global names, you can turn them on.


What is inside

Area What you get
Calendars Jalali, Hijri (Umm al-Qura) and Hebrew. Immutable, comparable with each other, plain PHP
Validators National code, Sheba, bank card, mobile, postal code, vehicle plate. Clear results with stable error codes
Numbers Persian, Arabic and English digits. Separators, ordinals. Number words in Persian and Arabic, with gender, case and vowel marks for Arabic
Text Arabic to Persian letters, ZWNJ cleanup, direction and script detection, Persian slugs
Holidays Official Iranian holiday dates for 1394 and 1396 to 1405, reported dates for 1380 to 1393 and 1395, estimates for other years. Offsets and overrides, weekends and business days
Prayer times Tehran, MWL, ISNA, Egypt, Makkah and Karachi methods, high-latitude rules and manual tuning
Carbon and Laravel Carbon macros, six validation rules, a Jalali facade, an Eloquent cast and an optional config file

What you can do

Work with three calendars

Jalali, Hijri and Hebrew share one contract, so you can compare dates from different calendars.

All three are plain PHP. You do not need ext-calendar. See the Jalali guide and the compare guide.

Check Iranian data

Each validator gives you a clear result, not just true or false.

Error codes are stable strings, like invalid_format and invalid_checksum. You turn them into your own messages. Validators never throw. Odd input, such as null or an array, gives invalid_type. A mobile result also tells you if the prefix lies in a mobile block of the national numbering plan (allocated).

Write numbers and clean text

Find holidays and prayer times

See Holiday calendar and Prayer times.

Use it with Carbon and Laravel

Carbon macros turn on by themselves when Carbon is installed.

Laravel finds the package on its own. You get six validation rules (mobile is a short alias of iran_mobile) with Persian, English and Arabic messages, a Jalali facade and an Eloquent cast. Publish the optional config file with php artisan vendor:publish --tag=rtly-kit-config.

More in the Laravel guide.


A full guide, in three languages

The guide has 29 pages in English, Persian and Arabic. It has search, a light and a dark theme, and works without JavaScript. Persian and Arabic pages are written right to left.

English, light theme Persian, dark theme, right to left
Topic Read
Start Quick start · Installation
Calendars Jalali · Hijri · Hebrew · Convert and compare · Carbon macros
Validation Validators overview · National code · Sheba and bank card · Mobile, postal code, plate
Numbers and text Digits and format · Number words · Arabic number words · Text tools
Dates and times Holidays · Holiday calendar · Prayer times
Laravel Setup · Validation and cast
Reference Helpers · Errors · API stability · Accuracy and data · Limits · Upgrade · Verifying releases · FAQ
Other languages فارسی · العربية

Helpers without clashes

The 27 helpers live in the RtlyKit namespace. Import what you need with use function. Nothing is added to the global scope.

Want short names like jdate()? Switch them on once, for example in your bootstrap file:

It only adds names that are free. It never replaces your functions and never throws. You can call it twice. The return value lists any names it skipped.


When something goes wrong

Every error the library throws extends RtlyKit\Exceptions\RtlyKitException. Catch that one class and you have them all. Each error has a stable code and some context:

A value of an accepted type that the library cannot use, such as a year outside the supported range, throws a library exception (InvalidDateException for dates). It never leaks a raw TypeError or ValueError. A value of a type the method does not accept, such as an array for a date, is rejected by PHP itself with a TypeError. Read the error guide for the full list.


What we checked

On 2026-10-08 we compared the library with official sources wherever we could reach them.

Good to know

Found a mistake? Please open an issue with a source. The full list is in the accuracy guide.


Requirements


Contributing

Bug reports, data corrections, translation fixes and small pull requests are welcome. Read CONTRIBUTING.md first. It explains the Docker workflow, the code style and how we handle data sources.

If RTLY-Kit saves you time, you can buy me a coffee. It is never expected, and it is very much appreciated.

Security problems go through SECURITY.md, not public issues.

Contributors

Thanks to everyone who has helped. Your name appears here after your first merged contribution.

Contributors

Moving from an early build? See CHANGELOG.md.


License

NOTICE.

About

Made by Ehsan Enaloo. RTLY-Kit is a toolkit for Jalali, Hijri and Hebrew calendars, Iranian validators, number words, holidays and prayer times in PHP.

Topics: jalali hijri hebrew persian arabic rtl php laravel carbon iran prayer-times


All versions of rtly-kit with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
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 enaxon/rtly-kit contains the following files

Loading the files please wait ...