period
calendar
period | calendar | |
---|---|---|
6 | 2 | |
1,534 | 186 | |
0.3% | 1.1% | |
2.9 | 3.5 | |
6 days ago | 4 months ago | |
PHP | PHP | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
period
-
Are there any packages that handle fetching according to periods (for example, fetch users created last month)
Carbon + scopes. But also for more complex period comparisions https://github.com/spatie/period
-
How can I check if the current date is between the start and end date of my sale?
Take a look at https://github.com/spatie/period
-
How can I check if a booking lies, overlaps or "eats up" already existing bookings?
Hopefully this makes sense. In the case that you need even more complex period logic I can recommend spatie/period.
-
Availability Calendar / Livewire?
You can use https://github.com/spatie/period for date operations
-
Determining which Time Slots are available in a Booking System
If that isn't an option a good package to look into is spatie/period (https://github.com/spatie/period). By converting your allTimeSlots data and your booking data into periods you should be able to get the information you want.
- I've released a brand new major version of spatie/period today, it might be a useful package if you're working with date ranges
calendar
-
Do you use a DateTime wrapper?
https://github.com/aeon-php/calendar comes with object representation of TimeUnit, more advanced iterators over TimePeriods, time ranges and overlaps detection, leap seconds support, Unix/UTC/TAI/GPS timestamps plus few handy extensions like holidays, business hours, retries, precise sleep, stopwatch, rate limiter. It’s a wrapper on an excellent native DateTime that does not extend it.
-
Aeon Calendar library pre 1.0 release feedback request
Hey, We are planning to release version 1.0 with long term support of https://github.com/aeon-php/calendar library and we thought it's a good time to ask for some feedback. How this library is different from other great libraries available in the wild? The main difference is that it does not extend \DateTime or \DateTimeImmutable, but instead it provides own fully immutable DateTime replacement. Why? There are few reasons but the most important one is to provide better and safer, Object Oriented API to work with DateTime/Date/Time/TimeZone/TimeUnit and TimePeriods. Safer means that the whole library API is designed to expose commonly misunderstood concepts and make them explicit, like for example adding month to given date expects to precisely define number of days DateTime::add(TimeUnit::days(30)); as a TimeUnit instance or use relative time unit DateTime::add(RelativeTimeUnit::month()); Calendar is the core library and it comes with few extra things like support for LeapSeconds, different Time Epoch (TAI, GPS), TimePeriods (iterating, overlapping, merging, finding gaps, sorting etc) or precise time measurement. There are few more libraries built on top of calendar, like for example Business Hours, Holidays (which is just an abstraction and bridge for other libraries), Rate Limiter, Retry but they all waits for the the calendar to be stabilized. You can find them here https://github.com/aeon-php
What are some alternatives?
read-time - Get estimated read time of an article. Similar to medium.com's "x min read". Multilingual including right-to-left written languages. Supports JSON, Array and String output.
Carbon - A simple PHP API extension for DateTime.
davical - Docker container with a complete DAViCal server (davical + apache + postgresql) with (optional) HTTPS support.
Moment.php - Parse, validate, manipulate, and display dates in PHP w/ i18n support. Inspired by moment.js
date-time - Date and time library for PHP
opening-hours - Query and format a set of opening hours
php-date
period - PHP's time range API
Duration for PHP - Working with durations made easy
cron-expression - Parse, Build and Validate CRON Expression. Calculate run dates and determine if a CRON expression is due
quick-plan - Defines and schedules Garmin workouts