https://github.com/kisphp/calendar-bundle
Symfony calendar
https://github.com/kisphp/calendar-bundle
Last synced: about 1 year ago
JSON representation
Symfony calendar
- Host: GitHub
- URL: https://github.com/kisphp/calendar-bundle
- Owner: kisphp
- License: mit
- Created: 2017-07-21T06:25:04.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-10-06T06:28:42.000Z (over 4 years ago)
- Last Synced: 2025-01-04T02:56:18.281Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 110 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Kisphp Calendar Bundle


## 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;
}
}
}
}
}
```