cron-expression
period
cron-expression | period | |
---|---|---|
1 | 6 | |
13 | 1,534 | |
- | 0.3% | |
0.0 | 2.9 | |
about 2 years ago | 9 days 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.
cron-expression
-
bakame/cron: Parse, Build and Validate CRON Expression. Calculate run dates and determine if a CRON expression is due
I created yet another CRON expression parser library for PHP you can see it https://github.com/bakame-php/cron-expression. The main reason was that I was getting confused by the public API of the most downloaded one on packagist https://packagist.org/packages/dragonmantank/cron-expression and since I liked the engine behind it, I tried to refactor it to expose a different set of API. Hopefully you will like this alternate take and yes it is PHP8.1+ only. And no I did not try to create PRs for that because it was a huge BC break for the original source repo which is still badass.
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
What are some alternatives?
icalendar-generator - Generate calendars in the iCalendar format
calendar - 📅 PHP Date & Time library that solves common problems in object oriented, immutable way.
period - PHP's time range API
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.
Cron - Cron API
davical - Docker container with a complete DAViCal server (davical + apache + postgresql) with (optional) HTTPS support.
ip - Immutable value object for IPv4 and IPv6 addresses, including helper methods and Doctrine support.
Moment.php - Parse, validate, manipulate, and display dates in PHP w/ i18n support. Inspired by moment.js
croner - Trigger functions or evaluate cron expressions in JavaScript or TypeScript. No dependencies. Most features. Node. Deno. Bun. Browser.
opening-hours - Query and format a set of opening hours