2017 © Pedro Peláez
 

library calendar

Straightforward calendars, with events, for any templating system

image

solution10/calendar

Straightforward calendars, with events, for any templating system

  • Tuesday, June 6, 2017
  • by alexgisby
  • Repository
  • 2 Watchers
  • 26 Stars
  • 2,369 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 6 Versions
  • 2 % Grown

The README.md

Solution10\Calendar

The Calendar component is a simple, but powerful package to help you in the rendering of, well, Calendars!, (*1)

Build Status Latest Stable Version Total Downloads License, (*2)

Features

  • No dependancies
  • PHP 5.3+
  • Straightforward interface
  • Support for multiple "resolutions" (week view, month view etc)
  • Easily extended
  • Templating system agnostic

Getting Started

Installation is via composer, in the usual manner:, (*3)

{
    "require": {
        "solution10/calendar": "^1.0"
    }
}

Creating a basic calendar is as such:, (*4)

setResolution(new MonthResolution());

// That's it! Let's grab the view data and render:
$viewData = $calendar->viewData();
$months = $viewData['contents'];
?>




weeks()[0]->days() as $day): ?> weeks() as $week): ?> days() as $day): ?>
title('F Y'); ?>
date()->format('D'); ?>
isOverflow()) { if ($calendar->resolution()->showOverflowDays()) { echo ''.$day->date()->format('d').''; } else { echo ' '; } } else { echo $day->date()->format('d'); } ?>

Solution10\Calendar does not provide you with templates as we have no idea what templating engine (if any) you're using. Instead, we give you a powerful and simple API so you can do the rendering yourself., (*5)

Further Reading

Userguide

For more information on creating Calendars, see the Calendars Section., (*6)

If you want to know more about Resolutions, check out the Resolutions Section., (*7)

Want to see how you can add Events to your calendars? You'll be wanting the Events Section., (*8)

PHP Requirements

  • PHP >= 5.3

Author

Alex Gisby: GitHub, Twitter, (*9)

License

MIT, (*10)

Contributing

Contributors Notes, (*11)

The Versions

06/06 2017

dev-master

9999999-dev

Straightforward calendars, with events, for any templating system

  Sources   Download

MIT

The Requires

  • php >= 5.3

 

The Development Requires

by Alex Gisby

calendar

06/06 2017

v1.3.0

1.3.0.0

Straightforward calendars, with events, for any templating system

  Sources   Download

MIT

The Requires

  • php >= 5.3

 

The Development Requires

by Alex Gisby

calendar

24/04 2017

v1.2.0

1.2.0.0

Straightforward calendars, with events, for any templating system

  Sources   Download

MIT

The Requires

  • php >= 5.3

 

The Development Requires

by Alex Gisby

calendar

24/04 2017

dev-feature/timeframe-intersections

dev-feature/timeframe-intersections

Straightforward calendars, with events, for any templating system

  Sources   Download

MIT

The Requires

  • php >= 5.3

 

The Development Requires

by Alex Gisby

calendar

29/10 2014

v1.1.0

1.1.0.0

Straightforward calendars, with events, for any templating system

  Sources   Download

MIT

The Requires

  • php >= 5.3

 

The Development Requires

by Alex Gisby

calendar

05/08 2014

v1.0.0

1.0.0.0

Straightforward calendars, with events, for any templating system

  Sources   Download

MIT

The Requires

  • php >= 5.3

 

The Development Requires

by Alex Gisby

calendar