PHPackages                             tobya/bcsapiwrapper - 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. tobya/bcsapiwrapper

ActiveLibrary[API Development](/categories/api)

tobya/bcsapiwrapper
===================

BCS Api Wrappers

v4.45(1mo ago)04.8k↑150%1[6 issues](https://github.com/tobya/bcsapiwrapper/issues)MITPHP

Since Jul 1Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/tobya/bcsapiwrapper)[ Packagist](https://packagist.org/packages/tobya/bcsapiwrapper)[ RSS](/packages/tobya-bcsapiwrapper/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (70)Used By (0)

BCS API Wrapper Library BCSAPI Library V4

[![Latest Stable Version](https://camo.githubusercontent.com/26e405eadb19ffc025608bbc40403a92d8c65c9d09436d70d90fdef86e119d49/68747470733a2f2f706f7365722e707567782e6f72672f746f6279612f626373617069777261707065722f76)](//packagist.org/packages/tobya/bcsapiwrapper) [![Total Downloads](https://camo.githubusercontent.com/922fee2e08e80713ef7f8234ad240b8663a827c9da1444312b64fe3ccd67804e/68747470733a2f2f706f7365722e707567782e6f72672f746f6279612f626373617069777261707065722f646f776e6c6f616473)](//packagist.org/packages/tobya/bcsapiwrapper) [![Latest Unstable Version](https://camo.githubusercontent.com/6217c25c7b34b5aea711e58b738700a34744972a9bb14e5d27ec52bdcc39369d/68747470733a2f2f706f7365722e707567782e6f72672f746f6279612f626373617069777261707065722f762f756e737461626c65)](//packagist.org/packages/tobya/bcsapiwrapper) [![License](https://camo.githubusercontent.com/1189e26fde372e81e622cf7c709b9e625a5dd2ca984ba4b526c5716342535b75/68747470733a2f2f706f7365722e707567782e6f72672f746f6279612f626373617069777261707065722f6c6963656e7365)](//packagist.org/packages/tobya/bcsapiwrapper)

The BCS Api Wrapper Library provide PHP wrapper classes for most of the APIs used internally within the BCS system.

Overview
--------

[](#overview)

### From Backoffice

[](#from-backoffice)

- Course
- Student
- CourseType
- Holiday
- MediaItem
- Note
- Personlist
- Subscriber
- Subscription
- TransactionType
- User
- Voucher

### From RecipeApi

[](#from-recipeapi)

- Recipe
- Render

### Secure Booking Server

[](#secure-booking-server)

- Secure Bookings

### KitchenBook

[](#kitchenbook)

- Telegram Chat

### Photo Api

[](#photo-api)

- PhotoAPI is seperate and currently doesnt have a wrapper.

install
-------

[](#install)

```
 composer require tobya/bcsapiwrapper
```

Publish config file

> php artisan vendor:publish

> select BCSApiWrapper

.env updates The following values need to be available in .env file

```
# Main BCS Api URLS
# Required for V1 where KEY is in URL
BCSBACKOFFICE_APIURL=
BCSBACKOFFICE_APIKEY=

# New BCS V4 Api Urls
BCSBACKOFFICE_V4_APIURL=
BCSBACKOFFICE_V4_APITOKEN=

# Photo Api
DEMOPHOTO_APIURL=

#Recipe Api
BCSRECIPE_APIURL=
BCSRECIPE_APIKEY=
```

Keep up to date

> composer update

Upgrading from V2

You need to add the following to `config/bcsapi.php`

```
  'v4' => [
            'backoffice' => [
                'url' => env('BCSBACKOFFICE_V4_APIURL',''),
                'token' => env('BCSBACKOFFICE_V4_APITOKEN',''),
            ],
        ]
```

and `.env` is

```
BCSBACKOFFICE_V4_APIURL={base host url, not api.backoffice.ie}
BCSBACKOFFICE_V4_APITOKEN={sanctum token}

```

V2 BCSApiWrapper

```
$CourseApi =  App('BCSApi')->Course();
$CourseInfo = $CourseApi->CourseInfo(12345);
echo $CourseInfo->CourseName;
```

V4 BCSApiWrapper

```
$CourseApi = BCSLoader::Course();
$CourseInfo = $CourseApi->CourseInfo(12345);
echo $CourseInfo->CourseName;
```

This may require rewriting of quite a bit of code on upgrading.

Tests
=====

[](#tests)

There is a Postman Collection to do tests on the main BCSApi routes.

[https://github.com/tobya/bcsStudents\_gitp4/blob/LaravelSubscriptions/resources/postman/api.cookingisfun.ie%20v2.postman\_collection.json](https://github.com/tobya/bcsStudents_gitp4/blob/LaravelSubscriptions/resources/postman/api.cookingisfun.ie%20v2.postman_collection.json)

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance97

Actively maintained with recent releases

Popularity22

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 94% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~25 days

Recently: every ~34 days

Total

55

Last Release

46d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a881e781ccf5267bc2c9153c0485a6b7b0fbfeaf212dcfcca6a4dd18885a48ee?d=identicon)[tobya](/maintainers/tobya)

---

Top Contributors

[![tobya](https://avatars.githubusercontent.com/u/325502?v=4)](https://github.com/tobya "tobya (47 commits)")[![tushargugnani](https://avatars.githubusercontent.com/u/5244323?v=4)](https://github.com/tushargugnani "tushargugnani (2 commits)")[![ariashahdadi](https://avatars.githubusercontent.com/u/48183968?v=4)](https://github.com/ariashahdadi "ariashahdadi (1 commits)")

---

Tags

api-client

### Embed Badge

![Health badge](/badges/tobya-bcsapiwrapper/health.svg)

```
[![Health](https://phpackages.com/badges/tobya-bcsapiwrapper/health.svg)](https://phpackages.com/packages/tobya-bcsapiwrapper)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[statamic/cms

The Statamic CMS Core Package

4.8k3.2M718](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[nickurt/laravel-postcodeapi

Universal PostcodeApi for Laravel 11.x/12.x/13.x

97221.2k](/packages/nickurt-laravel-postcodeapi)[mozex/anthropic-laravel

Anthropic PHP for Laravel is a supercharged PHP API client that allows you to interact with the Anthropic API

71226.4k1](/packages/mozex-anthropic-laravel)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

762.6k](/packages/scriptdevelop-whatsapp-manager)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
