PHPackages                             spiritsaint/laravel-bacs - 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. [Payment Processing](/categories/payments)
4. /
5. spiritsaint/laravel-bacs

ActiveLibrary[Payment Processing](/categories/payments)

spiritsaint/laravel-bacs
========================

02PHP

Since Sep 1Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Zen0x7/laravel-bacs)[ Packagist](https://packagist.org/packages/spiritsaint/laravel-bacs)[ RSS](/packages/spiritsaint-laravel-bacs/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Installation
============

[](#installation)

Executes the following command to install the package in your laravel project.

```
composer require spiritsaint/laravel-bacs:dev-master

```

Requirements
============

[](#requirements)

- Laravel 10 or higher
- PHP 8.1 or higher

Usage
=====

[](#usage)

After installation the package will register the `/api/bacs` endpoint. `php artisan serve can be used`

Only `GET` requests are acceptable, `serial_number` and `sun` or `marker` are required params.

For fast payments, use his parameter as true, otherwise you should define the `creation_date` and `expiration_date`.

Creation date can be today or a future day. Expiration date must be after Creation date.

`Accept` header with value `application/json` is mandatory.

OpenAPI
=======

[](#openapi)

In order to walk through the API you should view the documentation using [Swagger Editor](https://editor.swagger.io/):

```
openapi: 3.0.0
info:
  title: 'BACS - Swagger Documentation'
  version: 1.0.0
servers:
  - url: http://localhost:8000
paths:
  /api/bacs:
    get:
      operationId: bdfd7b90fc16856aad8db2a99ae14e6f
      parameters:
        -
          name: serial_number
          in: query
          required: true
          schema:
            description: 'Must be a 6 alphanumeric characters.'
            type: string
        -
          name: sun
          in: query
          required: false
          schema:
            description: "Must be a 6 characters if marker isn't defined."
            type: string
        -
          name: marker
          in: query
          required: false
          schema:
            description: "Must be hsbc or sage if sun isn't defined."
            type: string
            enum:
              - hsbc
              - sage
        -
          name: generation_number
          in: query
          required: false
          schema:
            description: 'Must be a number of 4 characters.'
            type: number
        -
          name: generation_version_number
          in: query
          required: false
          schema:
            description: 'Must be a number of 2 characters.'
            type: number
        -
          name: fast_payment
          in: query
          required: false
          schema:
            description: 'Indicates if must be fast payment.'
            type: string
        -
          name: creation_date
          in: query
          required: false
          schema:
            description: "Must be a date in format Y-m-d and explicit defined if fast_payment isn't defined. (ie: 2023-12-03)"
            type: string
        -
          name: expiration_date
          in: query
          required: false
          schema:
            description: "Must be a date in format Y-m-d and explicit defined if fast_payment isn't defined. (ie: 2023-12-03)"
            type: string
        -
          name: Accept
          in: header
          required: true
          schema:
            description: 'Must be application/json'
            type: string
            default: application/json
      responses:
        '200':
          description: Success
          content:
                application/json: {}

```

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity21

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

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

---

Top Contributors

[![Zen0x7](https://avatars.githubusercontent.com/u/8731267?v=4)](https://github.com/Zen0x7 "Zen0x7 (32 commits)")

### Embed Badge

![Health badge](/badges/spiritsaint-laravel-bacs/health.svg)

```
[![Health](https://phpackages.com/badges/spiritsaint-laravel-bacs/health.svg)](https://phpackages.com/packages/spiritsaint-laravel-bacs)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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