Search by

dende / calendar-bundle

uirapuru

There is no license information available for the latest version (1.9) of this package.

This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.

Package info

github.com/UirapuruDende/CalendarBundle

Language:JavaScript

pkg:composer/dende/calendar-bundle

Statistics

Installs: 501

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 0

1.9 2018-03-11 23:55 UTC

README

CalendarBundle

A Symfony 2 bundle for integration of Dende/Calendar component

Build Status

Screenshots:

img1

img2

installation:

  1. install via composer

    composer require dende/calendar-bundle

  2. enable bundle in AppKernel

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        return array(
            new Dende\CalendarBundle\DendeCalendarBundle(),
            ...
        );
    }
}
  1. Install and enable stof/doctrine-extensions-bundle for calendar entities (also add gedmo: ~ config to entity mapping!)

creating test database in mysql:

mysql -u user -ppassword -e "CREATE DATABASE `calendar_bundle_test`;"

creating schema:

cd calendar-bundle/
./console doctrine:schema:create

loading test fixtures:

cd calendar-bundle/
./console doctrine:fixtures:load --fixtures="Tests/DataFixtures/Standard"

resetting db:

cd calendar-bundle/
./reset-db.sh

install assets:

./console.sh assets:install Tests/app

running localhost server:

cd calendar-bundle/
php -S localhost:8080 -t Tests/app/

visiting page of calendar (example):

http://localhost:8080/web.php/api/calendar

todo list

  • doctrine entity mapping
  • configured test application (Tests/app)
  • REST/HATEOAS api for frontend (entry point: /api/calendar/)
    • tests
    • GET methods
    • filtering by date, weeks, calendar, event
    • POST methods
    • PUT methods
    • forms
  • php wrapper for fullcalendar configuration
  • automatically registering view entity manager
  • automatically adding mapping for default entity manager
  • autoconfiguration (as less instalation needed and configuring as needed)
  • registering application services
  • utilize some datetimepicker for event forms
  • frontend view based on javascript library
  • using sql/mongo by switching it in bundle config
  • printing/saving to pdf
  • full documentation
  • filtering in view by calendars
  • validation
  • dispatching proper events on actions
  • moving event occurrence up/down and to other days

bugs

  • adding new event from frontend creates only single occurrence

utilizes:

about:

  • there could be multiple calendars
  • calendar can have a multiple events
  • event can have multiple occurrences of event
  • if event is serial type (e.g. WEEKLY) it's occurrences can be updated:
    • singularily without changing event or other occurrences
    • as a whole with all his occurrences
  • one occurrence of serial event can be deleted or updated independently without affecting others
  • if serial occurrences are changed globally, they affect event, but don't affect occurrences changed/deleted in the past
  • when deleting event, all the occurrences are deleted
  • when deleting calendar, all it's events are deleted
  • event without occurrences is deleted
  • calendar without events can not be deleted
  • occurrences can be copied/moved to other event
  • events can be copied/moved to other calendar