Download the PHP package lisoing/calendar without Composer

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

calendar

Universal lunar and solar calendar package for Laravel and PHP, maintained by a global community. It brings worldwide holiday data, multilingual translations, and a welcoming contribution workflow inspired by the best open-source practices.

Highlights

Installation

Creating New Lunisolar Calendars

Want to add support for your country's lunisolar calendar? We've made it easy!

Quick Start

  1. Extend AbstractLunisolarCalendar - Handles all the boilerplate
  2. Create a calculator class - Just implement toLunar() and toSolar()
  3. Register your calendar - Add it to your Country class

Documentation

Example

See CambodiaCalendar.php for a complete working example.

Quick Start

📖 For detailed usage examples, see USAGE.md

Holiday lookups (Spatie-style)

Translations are resolved from resources/lang/cambodia/{locale}/holidays.php, mirroring the structure used by Spatie's package and enabling contributors to add locales with a single file.

Calendar conversions

The package supports three types of calendars:

  1. Solar Calendar (Gregorian) - Pure sun-based, 365/366 days/year
  2. Lunisolar Calendar (Khmer, Chinese, etc.) - Moon + Sun with leap months, ~354-384 days/year
  3. Lunar Calendar (Islamic/Hijri) - Pure moon-based, ~354 days/year

Basic Conversions

Calendar Type Detection

Fluent Calendar Switching

Getting Holidays

For more examples, see USAGE.md.

Package Structure

Roadmap

Milestone Focus
v1.0.0 Gregorian + Khmer lunar calendars, Cambodian holiday provider
v1.1.0 Additional lunar calendars (Chinese, Thai), expanded translation sets
v1.2.0 Interactive documentation portal and read-only API explorer

See CHANGELOG.md for released updates.

Packagist Setup

First Release

Before the package can be installed via Composer, you need to create the first release:

  1. Create and push the first tag:

  2. Submit to Packagist (if not already submitted):
    • Visit packagist.org and log in with your GitHub account
    • Click "Submit" and enter your repository URL: https://github.com/lisoing/calendar
    • Packagist will automatically detect the tag and create the package

Enable Auto-Updates

Once the package is on Packagist, enable automatic updates:

  1. Navigate to your package: Go to https://packagist.org/packages/lisoing/calendar
  2. Set up GitHub Hook:
    • Click on "Settings" or "Update" button
    • Look for "GitHub Hook" or "Auto-Update" section
    • Click "Update" or "Check Hook" to verify the connection
    • If not set up, click "Set up GitHub Hook" and authorize Packagist to access your repository

Once configured, Packagist will automatically update the package whenever you:

Note: Make sure your repository URL in composer.json matches your GitHub repository URL for the hook to work correctly.

Documentation

Algorithm Implementation

The Khmer calendar calculations are based on "Pratitin Soryakkatik-Chankatik 1900-1999" by Mr. Roath Kim Soeun. The implementation includes:

See docs/algorithms.md for detailed algorithm documentation.

Contributing

We welcome new calendars, country providers, translations, and documentation improvements.

Community impact badges, top contributor highlights, and detailed release notes will celebrate every contribution.

Security

Please review SECURITY.md for responsible disclosure guidelines.

License

Released under the MIT license.


All versions of calendar with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/translation Version ^6.0|^7.0|^8.0|^8.1|^9.0|^10.0|^11.0|^12.0
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 lisoing/calendar contains the following files

Loading the files please wait ...