8000 GitHub - kasirphp/kasir at v1.1.0
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

kasirphp/kasir

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:

$kasir = Kasir::make()
    ->customerDetails($user)
    ->billingAddress($billing_address)
    ->shippingAddress($shipping_address)
    ->itemDetails($items);

return $kasir->charge();

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/*"
            }
        ],
    }
  6. Run composer update.

License

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

About

Midtrans package for Laravel, in Laravel way.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Contributors 2

  •  
  •  
0