PHPackages                             koderpedia/labayar - 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. [Admin Panels](/categories/admin)
4. /
5. koderpedia/labayar

ActiveProject[Admin Panels](/categories/admin)

koderpedia/labayar
==================

CRM addon for your laravel ecommerce

1.1.0(1y ago)7402MITPHPPHP ^8

Since Apr 21Pushed 12mo ago1 watchersCompare

[ Source](https://github.com/masraga/labayar)[ Packagist](https://packagist.org/packages/koderpedia/labayar)[ RSS](/packages/koderpedia-labayar/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (6)Used By (0)

Labayar
=======

[](#labayar)

Labayar is a CRM library to handling many case in CRM app, such as make a payment, check order status, and other. With labayar you have no worry with payment logic, since labayar solve all your payment problem. Labayar is usefull if your build POS and Ecommerce application.

### Main Feature

[](#main-feature)

- Pay transaction over the counter (chasier)
- Pay transaction with payment gateway
- Sales graph monthly / yearly
- Download invoice as PDF
- Check payment status with modern UI

### Screenshot

[](#screenshot)

[![Snap UI](https://raw.githubusercontent.com/masraga/labayar/refs/heads/dev-master/screenshot/snap.png)](https://raw.githubusercontent.com/masraga/labayar/refs/heads/dev-master/screenshot/snap.png)[![Payment Status UI](https://raw.githubusercontent.com/masraga/labayar/refs/heads/dev-master/screenshot/payment-status.png)](https://raw.githubusercontent.com/masraga/labayar/refs/heads/dev-master/screenshot/payment-status.png)[![Invoice page](https://raw.githubusercontent.com/masraga/labayar/refs/heads/dev-master/screenshot/invoice.png)](https://raw.githubusercontent.com/masraga/labayar/refs/heads/dev-master/screenshot/invoice.png)[![graphic sales](https://raw.githubusercontent.com/masraga/labayar/refs/heads/dev-master/screenshot/graph.png)](https://raw.githubusercontent.com/masraga/labayar/refs/heads/dev-master/screenshot/graph.png)[![Payment page](https://raw.githubusercontent.com/masraga/labayar/refs/heads/dev-master/screenshot/payment-list.png)](https://raw.githubusercontent.com/masraga/labayar/refs/heads/dev-master/screenshot/payment-list.png)

### Requirements

[](#requirements)

- PHP 8
- Laravel 8 or above (labayar only support in laravel for now)
- Composer
- MySql

### Full Documentaion

[](#full-documentaion)

[Labayar full docs](https://koderpedia.com/docs/labayar)

### Quick Start

[](#quick-start)

[Labayar quick start](https://github.com/masraga/labayar-starter-kit)

### Installations

[](#installations)

1. Create laravel project you can check from [laravel official page](https://laravel.com/docs/12.x/installation).
2. Open laravel in your favorite text editor, prefer use vscode.
3. Ensure [composer](https://getcomposer.org/) is installed in your machine.
4. Open terminal/cmd, and ensure terminal path is same with your laravel project, and and run this command

```
composer require koderpedia/labayar
```

5. Publish all asset in vendor, run this in your terminal/cmd

```
php artisan vendor:publish --provider=Koderpedia\Labayar\LabayarServiceProvider
```

6. set your .env database and ensure mysql event is actived [learn more](https://vijaymrami.wordpress.com/2016/01/28/how-to-schedule-mysql-query-using-mysql-event-in-phpmyadmin/)

```
php artisan migrate
```

```
php artisan db:seed --class=LabayarSeeder
```

7. Setup your store information. Open .env file and add this below

KeyDescriptionLABAYAR\_STORE\_NAMEStore nameLABAYAR\_STORE\_OWNERStore ownerLABAYAR\_STORE\_ADDRESSStore addressLABAYAR\_STORE\_PHONEStore phoneLABAYAR\_STORE\_EMAILStore email8. run project

```
php artisan serve
```

### Basic usage

[](#basic-usage)

### Create transaction with payment gateway

[](#create-transaction-with-payment-gateway)

Currently labayar providing tripay payment gateway for handling transaction. We will always update more payment gateway soon. Before use tripay payment gateway, add this key to your .env

KeyDescriptionTRIPAY\_IS\_PRODUCTIONUse tripay production modeTRIPAY\_MERCHANT\_CODETripay merchant codeTRIPAY\_API\_KEYTripay API keyTRIPAY\_PRIVATE\_KEYTripay private keyTRIPAY\_RETURN\_URLTripay return url after payment successAdd this to your controller

```
