New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

tobya/bcsapiwrapper

BCS Api Wrappers
5,187

Larablocks Analysis

tobya/bcsapiwrapper works with Laravel 9 to 13 (latest release v5.3, Nov 26, 2026).

Laravel 7 and 8 in earlier releases.

Promising: maintained and up to date, meets 2 of 4 checks; not yet widely used.

  • Works with Laravel 13, the current version
  • Released in the last 12 months (Nov 26, 2026)
  • 52 downloads a month (needs 10,000)
  • 0 GitHub stars (needs 100)

State

Actively maintained
  • Last stable release: Nov 26, 2026.
  • 8 releases in the last 12 months.
  • First released: Jul 1, 2022.
  • Monthly downloads: 52.
  • 6 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 30, 2026.

Install
composer require tobya/bcsapiwrapper
Latest Version:v5.3
Laravel:9 – 13
Older releases:7 · 8
License:MIT
Last Updated:Nov 26, 2026
Links: GitHub  ·  Packagist
Maintainer: tobya

BCS API Wrapper Library BCSAPI Library V4

Latest Stable Version Total Downloads Latest Unstable Version License

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

Overview

From Backoffice

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

From RecipeApi

  • Recipe
  • Render

Secure Booking Server

  • Secure Bookings

KitchenBook

  • Telegram Chat

Photo Api

  • PhotoAPI is seperate and currently doesnt have a wrapper.

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=

Generating Backoffice Api Keys

For version 4 generate keys in backoffice. This can be done when logged in as super user , log in as toby.

https://backoffice.cookingisfun.ie/user/settings

Create a token via the form. Both fields are for info only.

Keep up to date

composer update

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.

V5 BCSApiWrapper

V5 is currently being written and the wrapping function are now being generated with Saloon php

As of writing only Course is available. Use as follows


$CourseApi = BCSApi::V5->CourseApi();

$response = $CourseApi->CourseDetails($courseid);

// retrieve response json data as an object.
$info = $response->Object();

echo $info->course->CourseName;


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

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

670,032,257 9,703
laravel/framework

The Laravel Framework.

640,572,096 35,338
laravel/tinker

Powerful REPL for the Laravel framework.

546,909,908 7,440
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

465,816,364 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

431,187,642 4,660

Version History

Version Released Laravel License
v5.3 ^9.0|^10|^11.0|^12.0|^13.0 MIT
v5.2 ^9.0|^10|^11.0|^12.0|^13.0 MIT
v5.1 ^9.0|^10|^11.0|^12.0|^13.0 MIT
v5.0 ^9.0|^10|^11.0|^12.0|^13.0 MIT
v4.46 ^9.0|^10|^11.0|^12.0|^13.0 MIT