Download the PHP package florianv/business without Composer
On this page you can find all versions of the php package florianv/business. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package business
Business
DateTime calculations in business hours
Installation
Usage
First you need to configure your business schedule:
Methods
within() - Tells if a date is within business hours
timeline() - Returns a timeline of business dates
closest() - Returns the closest business date from a given date
Serialization
PHP serialization
The Business
class can be serialized so it can be stored for later reuse:
If you use SpecialDay
instances, you need to install the jeremeamia/superclosure
library providing closure serialization:
JSON serialization
All classes can be encoded to JSON
The SpecialDay
instances require a context in order extract the data from the callable.
This is automatically set to new \DateTime('now')
for json_encode()
call only.
License
All versions of business with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.0
ext-json Version *
ext-json Version *
The package florianv/business contains the following files
Loading the files please wait ....