Download the PHP package phil/calendar-sync without Composer

On this page you can find all versions of the php package phil/calendar-sync. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package calendar-sync

phil/calendar-sync

External calendar synchronization: busy times read from iCalendar feeds, CalDAV, Google Calendar and Microsoft Graph, and the site's events written to them, each service an adapter behind a port.

A site that books people — a game master, a room, a coach — must not offer a time its people already gave elsewhere, and its bookings should appear in the calendars they read. phil/calendar-sync does both:

Each service is an adapter, named by the connection that uses it: ics reads a published iCalendar feed, caldav a CalDAV collection, google a Google calendar, microsoft an Outlook calendar through Microsoft Graph. An application adds its own by implementing the same two ports.

The application keeps the connections, their credentials and the busy periods read, behind ports: the package stores nothing, and keeps nothing between calls. Credentials are asked for at each call and cannot be serialised. The Messenger messages carry the identifier of a connection, and of an event, never a token, an address or a time read.

Every address is read by phil/url. A feed is read through phil/safe-http, and the CalDAV client is wrapped in Symfony's NoPrivateNetworkHttpClient: neither reaches a private network, and no redirect carries credentials to another host. Every read is bounded in time, bytes, components, pages and periods; the iCalendar reader is fuzzed.

phil/calendar-sync is a plain PHP library, on Symfony's HttpClient and Clock and on phil/recurrence for the rules of the events it reads.

Status

Part State
CalendarSync, the ports, BusyPeriod, BusyPeriods, SyncWindow, CalendarConnection, Credentials, OutboundEvent Implemented and tested
The iCalendar reader — events, rules, added, removed and changed occurrences, free/busy times Implemented, tested and fuzzed
The iCalendar writer Implemented and tested
The adapters ics, caldav, google and microsoft Implemented and tested against HTTP test doubles
The messages RefreshBusyTimes and SyncEvent and their handlers Implemented and tested

Documentation

Document What it covers
Installation Requirements, installing, and wiring the services.
Synchronizing Connections, credentials, busy times, events written, messages, failures.
Adapters What each adapter reads and writes, its calendar, its credentials and its bounds.
The iCalendar reader What is read of a calendar, the time zones, the bounds and what is refused.
Extension points The ports an application implements, its own adapters, and what stays closed.
Testing The package's tests and its fuzz target.
Reference Every public type, with its role.

Quick start

Requirements

PHP 8.5 or later with ext-dom, ext-intl, ext-libxml and ext-mbstring; Symfony 8.2's HttpClient, HTTP foundation and Clock; phil/recurrence, phil/safe-http and phil/url. Symfony Messenger is optional.

Contributing

Contributions are welcome on the PHIL monorepo: read the contribution guide and the security policy explains, never in a public issue.

License

MIT, © Philippe Gamache, doing business as Le Gnome Archiviste; a Parler Haut Interagir Librement project. See LICENSE.


All versions of calendar-sync with dependencies

PHP Build Version
Package Version
Requires php Version >=8.5
ext-dom Version *
ext-intl Version *
ext-libxml Version *
ext-mbstring Version *
phil/recurrence Version ^0.1@dev
phil/safe-http Version ^0.1@dev || ^0.2@dev
phil/url Version ^0.1@dev
symfony/clock Version ^8.2
symfony/http-client Version ^8.2
symfony/http-client-contracts Version ^3.6
symfony/http-foundation Version ^8.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package phil/calendar-sync contains the following files

Loading the files please wait ...