PHPackages                             sebacarrasco93/laravel-payku - 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. sebacarrasco93/laravel-payku

ActivePackage

sebacarrasco93/laravel-payku
============================

Payku Package for Laravel

1.0.5(2y ago)971.6k↓20.9%1[2 issues](https://github.com/sebacarrasco93/laravel-payku/issues)[1 PRs](https://github.com/sebacarrasco93/laravel-payku/pulls)MITPHPPHP ^7.3|^8.0

Since Jun 18Pushed 2y ago1 watchersCompare

[ Source](https://github.com/sebacarrasco93/laravel-payku)[ Packagist](https://packagist.org/packages/sebacarrasco93/laravel-payku)[ RSS](/packages/sebacarrasco93-laravel-payku/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (3)Versions (9)Used By (0)

Laravel Payku
=============

[](#laravel-payku)

📦 A simple implementation, and ready to use package for Payku.

### Requirements

[](#requirements)

- Laravel 8 or above

### Installation

[](#installation)

```
composer require sebacarrasco93/laravel-payku
```

#### Adding .env keys

[](#adding-env-keys)

You need to create a public and private token. You can create and get it from:

- [Payku Development environment](https://des.payku.cl/usuarios/tokenintegracion)
- [Payku Production environment](https://app.payku.cl/usuarios/tokenintegracion)

```
PAYKU_PUBLIC_TOKEN={your_public_token}
PAYKU_PRIVATE_TOKEN={your_private_token}
```

#### Important:

[](#important)

Laravel Payku automatically will set the environment URL based in your `APP_ENV` key, in your `.env` project's file

For example, if you set your `APP_ENV` to `local`, it will use `https://des.payku.cl/api`

```
APP_ENV=local # will set https://des.payku.cl/api
```

Otherwise, if your `APP_ENV` is on `production`, it will use `https://app.payku.cl/api`

```
APP_ENV=production # will set https://app.payku.cl/api
```

If you want to force a specific environment, you can set it

```
PAYKU_ENV=local # or production
```

If you want to force a specific API URL in another environment, you can [learn how to do it](docs/readme-changing-api-url.md)

### Usage

[](#usage)

Create a order

```
// In your controller, web.php or equivalent

$order = 'unique-order-'.rand(11111,99999);
$subject = 'Your order';
$amount = 1000;
$email = 'test@example.com';

return LaravelPayku::create($order, $subject, $amount, $email);
```

Easy Peasy!

### Extra

[](#extra)

If you want more control, you can publish the migrations and configuration

```
php artisan vendor:publish --provider="SebaCarrasco93\LaravelPayku\LaravelPaykuServiceProvider"
```

### Notes

[](#notes)

I didn't realize how many people were using `Laravel Payku`. So, I decided to take it back, and make an "TODO" list

### Future improvements

[](#future-improvements)

I'm working on improving the package, but I have very limited time due to my work.

- Allowing Webpay payment (2024/03/04)
- Update dependencies (2024/03/04)
- Fix method names and tests (2024/03/04)
- Add custom `.env` key `PAYKU_ENV` (2024/03/04)
- Add support to Webpay (again)
- Add support to Multicaja Efectivo
- \[ \]...

### Testing

[](#testing)

```
./vendor/bin/pest
```

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

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

###  Release Activity

Cadence

Every ~165 days

Recently: every ~246 days

Total

7

Last Release

805d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/56bd71b023559779be29a38ac1c178f70c793bc5014ab9748799071e3421ba9a?d=identicon)[sebacarrasco93](/maintainers/sebacarrasco93)

---

Top Contributors

[![sebacarrasco93](https://avatars.githubusercontent.com/u/30738997?v=4)](https://github.com/sebacarrasco93 "sebacarrasco93 (47 commits)")[![cachorro](https://avatars.githubusercontent.com/u/793133?v=4)](https://github.com/cachorro "cachorro (11 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/sebacarrasco93-laravel-payku/health.svg)

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

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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