Download the PHP package wts-calendar/server-php without Composer

On this page you can find all versions of the php package wts-calendar/server-php. 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 server-php

PHP Calendar REST API Server

Latest Stable Version PHP Requirement

wts-calendar/server-php is the framework-neutral PHP REST API companion for @wts-calendar/core. It provides production-oriented PSR-7/PSR-15 HTTP handling, immutable event contracts, validation, strong ETags, optimistic concurrency, and a replaceable persistence boundary. It does not require a WTS-hosted backend.

Use it with Angular, React, Vue, React Native, or any client capable of calling JSON HTTP endpoints. Slim can mount the handler directly; Laravel and Symfony can use their standard PSR bridges.

Highlights

Compatibility

Component Supported
PHP 8.2, 8.3, 8.4 and later compatible 8.x releases
HTTP messages PSR-7 2.x
Request handler PSR-15 1.x
HTTP factories PSR-17 1.x
WTS browser client @wts-calendar/core REST data adapter

Install

The package supports PHP 8.2 and newer and depends only on standard PSR interfaces at runtime. Your application supplies a PSR-17 response/stream factory; most PSR-compatible frameworks already provide one.

Configure

Route both the collection and item paths to this PSR-15 handler:

That route syntax is directly usable with Slim 4. In Symfony or Laravel, expose the same handler through the framework's PSR-7/PSR-15 bridge. Authentication, authorization, CORS, and rate limiting remain normal host middleware.

Implement CalendarEventStoreInterface with PDO, Doctrine, Eloquent, a document database, or an existing service. InMemoryCalendarEventStore is included only for examples and tests; it is not durable and must not be used as production persistence.

Connect the browser package

All-day values use yyyy-MM-dd. Timed values and query boundaries require ISO 8601 with Z or an explicit UTC offset. Mutation versions are sent as If-Match entity tags.

HTTP contract

Method Route Purpose
GET /api/calendar/events?start=...&end=...&timeZone=... Load a bounded visible range
GET /api/calendar/events/{id} Load one event and its ETag
POST /api/calendar/events Create; returns 201, Location, and ETag
PATCH or PUT /api/calendar/events/{id} Replace the event representation
DELETE /api/calendar/events/{id} Delete an event

The handler returns RFC 7807-compatible problem documents. Stale versions use 409 Conflict, matching the WTS REST adapter's conflict result.

Production responsibilities

The host application remains responsible for:

Configure a web-server/PHP request limit as well as maxPayloadBytes; the handler enforces its own bounded stream read, but rejecting oversized requests before PHP allocates them is more efficient.

Local verification

The conformance script checks create, query, strict preconditions, stale-version conflicts, update, validation, delete, ETags, all-day serialization, and route isolation using a real PSR-7 implementation.

For a runnable month calendar with create, edit, and delete dialogs, see Suman201/calendar-server-php-example. It mounts this package's real handler and uses a host-provided JSON storage adapter.

Project links

License

MIT © Suman Mandal.


All versions of server-php with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-json Version *
psr/http-factory Version ^1.0
psr/http-message Version ^2.0
psr/http-server-handler Version ^1.0
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 wts-calendar/server-php contains the following files

Loading the files please wait ...