Download the PHP package kanagama/holidays without Composer

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

holidays

日本の休日・祝日判定・祝日の名称を取得


packagist

https://packagist.org/packages/kanagama/holidays


使い方

composer でインストールします

使いたいクラスで use するだけです


メソッド一覧

checkPublicHoliday(int $year, int $month, int $day): bool

指定日が祝日であれば true を返却します


getPublicHolidayName(int $year, int $month, int $day): ?string

指定日の祝日名を返却します。指定日が祝日でない場合は null を返却します。


checkHoliday(int $year, int $month, int $day): bool

指定日が祝日もしくは土日であれば true を返却します。


checkDayBeforePublicHoliday(int $year, int $month, int $day): bool

指定日が祝前日であれば true を返却します。


checkDayAfterPublicHoliday(int $year, int $month, int $day): bool

指定日が祝後日であれば true を返却します。


addPublicHoliday(int $year, int $month, int $day, string $holidayName): void

指定日をオレオレ祝日に設定します。既に祝日設定されている場合は上書きされます。

※他のファンクションでも同様に、指定した日が祝日判定されます。 getPublicHolidayName() でも名称が取得されます。



全てのメソッドが静的に呼び出せます

開発

テスト用コンテナをビルド


各PHPのバージョンのコンテナを起動してテストを実行


開発用コンテナをビルド


開発用コンテナを起動


All versions of holidays with dependencies

PHP Build Version
Package Version
Requires kanagama/csv Version 1.0.0
nesbot/carbon Version ^2.6
php Version ^7.4 || ^8.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 kanagama/holidays contains the following files

Loading the files please wait ....