Download the PHP package asorasoft/chhankitek without Composer

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

# Chhankitek for Laravel

Latest Version on Packagist Total Downloads

A PHP package to convert dates to Lunar (Chhankitek) format — works with or without Laravel. Learn more about Khmer calendar.


## 🇰🇭 Stand with Cambodia • កម្ពុជា ### 🕊️ **Cambodia Needs Peace** 🕊️ We stand in solidarity with our brave soldiers defending Cambodia's sovereignty and territorial integrity. Our hearts are with those protecting our homeland during these challenging times. We call upon the international community to support peaceful resolution and respect for Cambodia's borders. **🙏 កម្ពុជាត្រូវការសន្តិភាព • Together we stand for peace and sovereignty**

Documentation

For detailed documentation, please visit https://chhankitek.netlify.app

Installation

You can install the package via composer:

Usage

Timezone note: ->setTimezone('Asia/Phnom_Penh') ensures the correct Cambodian date is used when your server runs in a different timezone (e.g. UTC). Near midnight UTC, the calendar date differs from Cambodia's. You can omit it if app.timezone in config/app.php is already set to Asia/Phnom_Penh.

Available Methods

Alternatively, you can use the toLunarDate helper function:

Pure PHP Usage (without Laravel)

The package works in any PHP project — Laravel is not required. The only runtime dependency is nesbot/carbon.

Instantiate Chhankitek directly and read the lunar date from the formatKhmerDate property:

The toLunarDate() helper is also available outside Laravel:

Khmer Numerals

Convert Arabic numerals to their Khmer representation with the HasKhmerNumberConversion trait:

Caching

The package caches converted dates for one year (365 days) to minimize computational overhead for frequently accessed dates. The cache is swappable via the CacheRepository interface, so it works the same whether or not you use Laravel.

Default behavior

Providing your own cache

Pass any implementation of Asorasoft\Chhankitek\Cache\CacheRepository as the second constructor argument:

Testing

The test suite is split into two groups — run them individually if needed:

Changelog

Please see CHANGELOG for more information about recent changes.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Support

If you like this package and want to support me, you can buy me a coffee ☕

Credits

License

The MIT License (MIT). Please see License File for more information.

Authors and Acknowledgment

This library would not exist without the hard work of these people:

  1. Based on the algorithm by Mr. Phylypo Tum from Khmer Calendar
  2. Ported from momentkh by ThyrithSor into Java
  3. Khmer New Year Time Calculation
  4. Ported from MetheaX/khmer-chhankitek-calendar by MetheaX into a Laravel Package

All versions of chhankitek with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
nesbot/carbon Version ^2.0|^3.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 asorasoft/chhankitek contains the following files

Loading the files please wait ...