Download the PHP package vesselind/working-days-calculator without Composer

On this page you can find all versions of the php package vesselind/working-days-calculator. 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 working-days-calculator

Bulgarian Working Days Calculator

PHP ^8.2

A standalone, framework-agnostic PHP library for calculating Bulgarian working days, working hours, public holidays, and legal deadlines per the Bulgarian Labor Code (art. 154) and Civil Procedural Code (art. 60).

Installation

Via Packagist

Via local path repository

Quick Start (≤ 5 lines — SC-004)

Usage Examples

Working Days in a Month

Working Days in a Full Year

Working Days for a Custom Date Range

Working Hours

Listing Holidays for a Period

Injecting Government-Announced Days Off

Orthodox Easter Date

Legal Deadline Calculation (CPC Art. 60)

Handling Invalid Input

Legal Deadline Calculation (ЗЗД Art. 72 — Law of Obligations)

ЗЗД art. 72 rules applied:

  • §1 Month terms clamp to last day of month when the target month is shorter.
  • §1 Week terms expire on the same weekday N weeks later.
  • §2 Day terms: the triggering event day is not counted.
  • §2 Non-working last day → first following working day (присъствен ден).
  • §3 Backward day terms: neither the target day nor the expiry day is counted.
  • §5 Named anchors: начало = 1st, среда = 15th, край = last day of month.

Requirements

Requirement Value
PHP version ^8.2
Carbon ^3.0 (nesbot/carbon)
Framework None (zero runtime framework dependencies)
Installation Composer
Namespace Vesselind\WorkingDaysCalculator\

Features

License

MIT


All versions of working-days-calculator with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
nesbot/carbon Version ^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 vesselind/working-days-calculator contains the following files

Loading the files please wait ...