An open API service indexing awesome lists of open source software.

https://github.com/kisphp/calendar-bundle

Symfony calendar
https://github.com/kisphp/calendar-bundle

Last synced: about 1 year ago
JSON representation

Symfony calendar

Awesome Lists containing this project

README

          

# Kisphp Calendar Bundle

![example workflow](https://github.com/kisphp/calendar-bundle/actions/workflows/phpunit-run.yml/badge.svg)
![example workflow](https://github.com/kisphp/calendar-bundle/actions/workflows/npm-run.yml/badge.svg)

## Installation

```bash
composer require kisphp/calendar-bundle
```

## Usage

```php
generateData($year, $month, date('d'));

// get generated days as array
$calendar->getDays();
```

Add css to your page (Symfony)
```html

```
## Extend calendar

Here is an example on how to make the callendar responsive.
All you have to do is to extend the scss file:

```scss
$column_width: 100%/7;
$column_height: 35px;
$font-size: 16px;
$active_background: #369;
$active_color: #fff;
$col_border_width: 0;

@import "vendor/kisphp/calendar-bundle/gulp/assets/scss/calendar.scss";

.kisphp-calendar {

.col {
&:hover {
background: #ccc;

.out {
color: #fff;
}
}

.active {
a {
color: #fff;
}
}
.day {
a {
font-weight: bold;

&:hover {
color: #a30000;
}
}
}
}
}
```