Skip to content

kasirphp/kasir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

887c83c · Jan 20, 2023

History

52 Commits
Jan 19, 2023
Jan 16, 2023
Jan 16, 2023
Jan 17, 2023
Jan 20, 2023
Jan 19, 2023
Jan 18, 2023
Jan 16, 2023
Jan 16, 2023
Jan 19, 2023
Jan 16, 2023
Jan 16, 2023
Jan 16, 2023
Jan 16, 2023
Jan 19, 2023

Repository files navigation

Kasir Logo

Packagist Downloads Packagist PHP Version Packagist PHP Version License

Introduction

Kasir helps integrate Midtrans in Laravel way.

Usage

In your controller or Livewire component, you can write:

Snap::make(200000)
    ->customerDetails($user)
    ->billingAddress($billing_address)
    ->shippingAddress($shipping_address)
    ->itemDetails($items)
    ->redirect();

Installation

Please refer to Kasir Installation Page.

Contributing

If you want to contribute to Kasir package, you may want to test it in a real Laravel project:

  1. Fork this project to your GitHub account.
  2. Create Laravel app locally.
  3. Clone your fork in your Laravel app's root directory.
  4. In the /kasir directory, create a new branch for your fix, e.g. fix-something.
  5. Install the packages in your app's composer.json:
{
    ...
    "require": {
        "kasir/kasir": "*"
    },
    "repositories": [
        {
            "type": "path",
            "url": "kasir/*"
        }
    ],
    ...
}
  1. Run composer update.

License

Kasir is open-sourced software licensed under the MIT license.