thorazine/ics 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

thorazine/ics

Composer 安装命令:

composer require thorazine/ics

包简介

An ical file maker

README 文档

README

It's a simple little thing, but it keeps comming back so I made a package for it. This package contains a single class which generates an iCal (.ics) file for your agenda to import.

Functionality

  • Create stream or get the content
  • Alarm functionality
  • Visibility for Microsoft and others combined in availiblilty
  • Title, summary and description are all custom but fallback on title.
  • Start date/end data gets the timezone from Laravel config, but can be overwritten if needed.
  • Set an alarm

Streaming

use Thorazine\Ics\Ics;

$ical = new Ics([
	'title' => 'Test Ics', 
	'startDate' => '2017-07-21 12:00:00', 
	'endDate' => '2017-07-21 14:00:00',
]);

$ical->stream();

Save to file

use Thorazine\Ics\Ics;

$ical = new Ics([
	'title' => 'Test Ics', 
	'startDate' => '2017-07-21 12:00:00', 
	'endDate' => '2017-07-21 14:00:00',
]);

file_put_contents('some-filename.ics', $ical->get());

Options

Options are inserted in the array when creating a new Ics class

key Mandatory Type Possible values
title true string Any
startDate true timestamp Any timestamp as excepted by strtotime()
endDate true timestamp Any timestamp as excepted by strtotime()
summary false string Any
description false string /n for new line
location false string Any
timezone false timezone Any timezone known to PHP
alarm false string [integer][D or H or M] (M = minute, H = hour, D = Day)
availibility false boolean true = opaque and out of office, false = transparant and free

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-07-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固