承接 sssurii/laravel-ics 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sssurii/laravel-ics

最新稳定版本:v0.3

Composer 安装命令:

composer require sssurii/laravel-ics

包简介

Laravel package to create iCalendar / ICS files. Send new event invitations via Email and can cancel or update already sent invitation.

README 文档

README

Laravel package to create iCalendar/ICS files. Send new event invitations via Email and can cancel or update already sent invitation.

Installation

Install using composer:

`composer require sssurii/laravel-ics` 

To publish the config, run the vendor publish command:

`php artisan vendor:publish --provider="INSAN\ICS\ICSServiceProvider" --tag=config` 

Usage

  1. For Laravel 5.6 or above, simply load class:

    use INSAN\ICS\ICS;

  2. For laravel 5.5 or below, open your config/app.php and add below line under 'providers':

/* * Package Service Providers... */ INSAN\ICS\ICSServiceProvider::class, 

Then simply load class as in step 1.

  1. Use package class as below:

Set various event details, pass properties as array while initializing class:

 $event_properties = [ 'uid' => uniqid(), 'sequence' => 0, 'description' => 'Event Invitation via email.', 'dtstart' => date('Y-m-d 09:00'), 'dtend' => date('Y-m-d 10:00'), 'summary' => 'This is an event invitation sent through email.', 'location' => 'VR Punjab, S.A.S Nagar, Chandigarh', 'url' => 'www.example.com', ]; $ics_file = new ICS($event_properties); return $ics_file->toString(); 

Some optional properties can be set as below, like set organizer details

 //Optional $ics_file->setOrganizer('Surinder', 'sssurii.dev@gmail.com'); 

If you want cancel already sent invitation, use additional code to above:

 //Optional $ics_file->markEventCancel(); 

Note: If want to cancel an already sent invitation, you must use same uid which was used in invitation you need to cancel.

Help / Support

For bug reports, please open an issue on GitHub.

统计信息

  • 总下载量: 55.32k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 22
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 21
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固