All Projects → spatie → Calendar Links

spatie / Calendar Links

Licence: mit
Generate add to calendar links for Google, iCal and other calendar systems

Projects that are alternatives of or similar to Calendar Links

Time
Building a better date/time library for Swift
Stars: ✭ 1,983 (+264.52%)
Mutual labels:  datetime, calendar
Calendarview
An Easy to Use Calendar for iOS (Swift 5.0)
Stars: ✭ 429 (-21.14%)
Mutual labels:  datetime, calendar
Date
A date and time library based on the C++11/14/17 <chrono> header
Stars: ✭ 2,389 (+339.15%)
Mutual labels:  datetime, calendar
Pg Calendar
📆 beautiful and eidetic date picker
Stars: ✭ 109 (-79.96%)
Mutual labels:  datetime, calendar
React Datetime Picker
A datetime picker for your React app.
Stars: ✭ 294 (-45.96%)
Mutual labels:  datetime, calendar
Calendar
📅 PHP Date & Time library that solves common problems in object oriented, immutable way.
Stars: ✭ 113 (-79.23%)
Mutual labels:  datetime, calendar
shamsi date
A Flutter and Dart package for using Jalali (Shamsi, Solar, Persian or Jalaali) calendar. You can convert, format and manipulate Jalali and Gregorian (Miladi) date and times.
Stars: ✭ 59 (-89.15%)
Mutual labels:  datetime, calendar
Period
PHP's time range API
Stars: ✭ 616 (+13.24%)
Mutual labels:  datetime, calendar
Datez
📆 Breeze through Date, DateComponents, and TimeInterval with Swift!
Stars: ✭ 254 (-53.31%)
Mutual labels:  datetime, calendar
nepali-datetime
Python's core datetime inspired nepali datetime (BS date & NPT) package 🇳🇵
Stars: ✭ 36 (-93.38%)
Mutual labels:  datetime, calendar
Timex
A complete date/time library for Elixir projects.
Stars: ✭ 1,538 (+182.72%)
Mutual labels:  datetime, calendar
Zebra datepicker
A super-lightweight, highly configurable, cross-browser date / time picker jQuery plugin
Stars: ✭ 367 (-32.54%)
Mutual labels:  datetime, calendar
Laydate
layDate(日期与时间组件) 是 layui 独立维护的三大组件之一
Stars: ✭ 1,066 (+95.96%)
Mutual labels:  datetime, calendar
Tail.datetime
A lightweight, translat- and configurable Open Source DateTime Picker, written in pure vanilla JavaScript!
Stars: ✭ 139 (-74.45%)
Mutual labels:  datetime, calendar
React Calendar
A React Native inspired date list renderer
Stars: ✭ 34 (-93.75%)
Mutual labels:  datetime, calendar
Dpicker
A framework-agnostic minimal date picker
Stars: ✭ 187 (-65.62%)
Mutual labels:  datetime, calendar
fiscalyear
📆 Utilities for managing the fiscal calendar
Stars: ✭ 33 (-93.93%)
Mutual labels:  datetime, calendar
Pandas market calendars
Exchange calendars to use with pandas for trading applications
Stars: ✭ 319 (-41.36%)
Mutual labels:  datetime, calendar
Angular Moment Picker
Angular Moment Picker is an AngularJS directive for date and time picker using Moment.js.
Stars: ✭ 536 (-1.47%)
Mutual labels:  datetime, calendar
Calendar
Календарь событий по фронтенду
Stars: ✭ 395 (-27.39%)
Mutual labels:  calendar

Generate add to calendar links for Google, iCal and other calendar systems

Latest Version on Packagist Total Downloads Test Quality Score

Using this package you can generate links to add events to calendar systems. Here's a quick example:

use Spatie\CalendarLinks\Link;

Link::create(
    'Birthday',
    DateTime::createFromFormat('Y-m-d H:i', '2018-02-01 09:00'),
    DateTime::createFromFormat('Y-m-d H:i', '2018-02-01 18:00')
)->google();

This will output: https://calendar.google.com/calendar/render?action=TEMPLATE&text=Birthday&dates=20180201T090000/20180201T180000&sprop=&sprop=name:

If you follow that link (and are authenticated with Google) you'll see a screen to add the event to your calendar.

The package can also generate ics files that you can open in several email and calendar programs, including Microsoft Outlook, Google Calendar, and Apple Calendar.

Support us

We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.

Installation

You can install the package via composer:

composer require spatie/calendar-links

Usage

<?php
use Spatie\CalendarLinks\Link;

$from = DateTime::createFromFormat('Y-m-d H:i', '2018-02-01 09:00');
$to = DateTime::createFromFormat('Y-m-d H:i', '2018-02-01 18:00');

$link = Link::create('Sebastian\'s birthday', $from, $to)
    ->description('Cookies & cocktails!')
    ->address('Kruikstraat 22, 2018 Antwerpen');

// Generate a link to create an event on Google calendar
echo $link->google();

// Generate a link to create an event on Yahoo calendar
echo $link->yahoo();

// Generate a link to create an event on outlook.com calendar
echo $link->webOutlook();

// Generate a data uri for an ics file (for iCal & Outlook)
echo $link->ics();

// Generate a data uri using arbitrary generator:
echo $link->formatWith(new \Your\Generator());

⚠️ ICS download links don't work in IE and EdgeHTML-based Edge browsers, see details.

Changelog

Please see CHANGELOG for more information what has changed recently.

Testing

composer test

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Postcardware

You're free to use this package (it's MIT-licensed), but if it makes it to your production environment we highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using.

Our address is: Spatie, Samberstraat 69D, 2060 Antwerp, Belgium.

We publish all received postcards on our company website.

Credits

License

The MIT License (MIT). Please see License File for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].