PHPackages                             bailaya/core - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. bailaya/core

ActiveLibrary[API Development](/categories/api)

bailaya/core
============

A PHP client for accessing the BailaYa public API

1.0.1(3mo ago)02ISCPHP

Since Feb 9Pushed 1mo agoCompare

[ Source](https://github.com/Infinity-Curve/BailaYa-API-PHP)[ Packagist](https://packagist.org/packages/bailaya/core)[ RSS](/packages/bailaya-core/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (2)Used By (0)

bailaya/core
============

[](#bailayacore)

> A PHP client for accessing the BailaYa public API

Overview
--------

[](#overview)

This package provides an easy-to-use wrapper around the BailaYa API, allowing PHP developers to fetch studio profiles, instructors, classes, events, and more. It includes DTOs for structured responses, automatic date parsing, and graceful handling of invalid JSON.

Features
--------

[](#features)

- DTO classes for typed API responses
- Automatic `DateTimeImmutable` parsing
- Optional studio ID configuration
- Graceful JSON fallback (`bio`, `description`, etc.)
- Supports querying by date and class type
- Built on [Guzzle](https://github.com/guzzle/guzzle)

Installation
------------

[](#installation)

```
composer require bailaya/core
```

Usage
-----

[](#usage)

### Basic Setup

[](#basic-setup)

```
