Download the PHP package synara/sdk without Composer

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

Synara PHP SDK

A model-first PHP SDK for the Synara API. Build events with a fluent, immutable API and manage them through resource classes.

Installation

Quick Start

Timezone requirement: the Synara API expects ISO 8601 timestamps with timezone offsets. Make sure your DateTimeImmutable values include an offset (e.g. 2024-01-15T10:00:00-08:00).

Resources & Requests

Client exposes typed resources. Each resource turns models into HTTP payloads for you, so you never have to hand-craft JSON.

Every response is converted back into immutable model instances, ready for fluent reuse.

Creating Events

Build an event with Event::make() and then chain fluent modifiers. Every method returns a new immutable instance.

The SDK automatically serializes this model into a JSCalendar jsevent payload when you call create() or update(). You work with PHP models; the SDK handles converting them to JSON that Synara understands.

Adding Attendees

Attendees are added using the fluent API:

Updating Events

Because models are immutable, every modifier returns a new instance. Persist updates by sending the modified model back to the resource.

Finding Events

Error Handling

The SDK throws specific exceptions for different error scenarios:

Custom HTTP Client

You can inject a custom PSR-18 HTTP client:

Model Properties

Event

Attendee

Serialization & Payloads

Example JSCalendar output:

Testing

Run the test suite:

The test suite includes:

Immutability

All models are immutable. Methods like withDuration(), withDescription(), addAttendee(), etc., return new instances:

License

MIT


All versions of sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
guzzlehttp/guzzle Version ^7.0
psr/http-client 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 synara/sdk contains the following files

Loading the files please wait ...