定制 jihoun/calendar 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

jihoun/calendar

最新稳定版本:v1.0.0

Composer 安装命令:

composer require jihoun/calendar

包简介

Build calendar (.ics) files.

README 文档

README

Build Status Code Climate

Build calendar (.ics) file in php

This library allows quickly generating ics files in php. Outputs should be compatible with the standard https://tools.ietf.org/html/rfc5545. But currently, not every single bit of the standard is implemented.

Use

You can load this library in your project using composer:

{
   "require": {
       "jihoun/calendar": "dev-master"
   },
}

Then in your code, do the following

$event = new \Jihoun\Calendar\Component\Event();
$event
    ->setDateTimeStart(new Property\DateTimeStart(new \DateTime()))
    ->setDateTimeEnd(new Property\DateTimeEnd(new \DateTime()))
    ->setDescription(new Property\Description('Very very lengthy description'))
    ->setLocation(new Property\Location('in the office'))
    ->setOrganizer(new Property\Organizer('john.doe@gmail.com'))
    ->setSummary(new Property\Summary('new test event'));
$cal = new \Jihoun\Calendar\Calendar();
$cal->addComponent($event);
file_put_contents('cal.ics', $cal->toString());

Contributions and feedbacks

Feel free to make me any feedback and/or contribution.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2016-08-30