Download the PHP package okeke-dev/laravel-bachs without Composer

On this page you can find all versions of the php package okeke-dev/laravel-bachs. 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 laravel-bachs

Laravel Bachs

An independent, community-maintained Laravel integration for Bachs.io.

CI Status Latest Version Total Downloads License


Introduction

Laravel Bachs brings Bachs.io billing to Laravel: products, customers, subscriptions, checkout sessions, payments, refunds, payment methods, webhooks, and more — with a Cashier-style API that fits naturally into your application.

Requires PHP ^8.2 and Laravel ^12.0|^13.0. See CHANGELOG.md for the latest changes.

Features

Requirements

Installation

The package registers its own service provider automatically. Run the install command to publish config, migrations, and views:

Or publish individually:

Configuration

Set your credentials in .env:

The published config/bachs.php also supports multiple named connections:

Usage

Products

Customers

Billable trait

Add the Billable trait to any Eloquent model (e.g. User) to get billing helpers:

Checkout

Subscriptions

Payments & refunds

Webhooks

Register the webhook route in your routes/web.php:

Set the signing secret in .env:

Listen for typed events in your EventServiceProvider:

Enable local model sync in config/bachs.php:

Blade components

Artisan commands

Low-level transport

BachsClient is the HTTP transport used by the resource layer. It handles authentication, JSON, timeouts, idempotency keys, custom headers, retries with exponential backoff, and typed exceptions:

Testing

Changelog

Please see CHANGELOG.md for what changed recently.

Contributing

Please see CONTRIBUTING.md for details.

Security

Please see SECURITY.md for reporting vulnerabilities.

Credits

License

The MIT License (MIT). Please see LICENSE for more information.


All versions of laravel-bachs with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/config Version ^12.0|^13.0
illuminate/console Version ^12.0|^13.0
illuminate/contracts Version ^12.0|^13.0
illuminate/events Version ^12.0|^13.0
illuminate/http Version ^12.0|^13.0
illuminate/routing Version ^12.0|^13.0
illuminate/support Version ^12.0|^13.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 okeke-dev/laravel-bachs contains the following files

Loading the files please wait ...