PHPackages                             matheusfs/laravel-checkout - 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. [Payment Processing](/categories/payments)
4. /
5. matheusfs/laravel-checkout

ActiveLibrary[Payment Processing](/categories/payments)

matheusfs/laravel-checkout
==========================

Add complete shopping functionalities to your application

0.3.3(5y ago)011.7k↓53.1%[1 PRs](https://github.com/continuo-tecnologia/laravel-checkout/pulls)MITPHPCI failing

Since Dec 6Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/continuo-tecnologia/laravel-checkout)[ Packagist](https://packagist.org/packages/matheusfs/laravel-checkout)[ Docs](https://github.com/matheusfs/laravel-checkout)[ RSS](/packages/matheusfs-laravel-checkout/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (33)Used By (0)

Checkout with Pagar.me
======================

[](#checkout-with-pagarme)

Laravel checkout facade to Pagar.me v4 api

[![GitHub Workflow Status](https://camo.githubusercontent.com/c40cb184f95af119108d7f9074ef316d929f93ac5b508595e8b90c70aaf943c7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d61746865757366732f6c61726176656c2d636865636b6f75742f74657374732e796d6c)](https://camo.githubusercontent.com/c40cb184f95af119108d7f9074ef316d929f93ac5b508595e8b90c70aaf943c7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d61746865757366732f6c61726176656c2d636865636b6f75742f74657374732e796d6c)[![codecov](https://camo.githubusercontent.com/280d8a5d3832e668674f500728916c22d048ed171e91d0893950164f60337db8/68747470733a2f2f636f6465636f762e696f2f67682f4d61746865757346532f6c61726176656c2d636865636b6f75742f67726170682f62616467652e7376673f746f6b656e3d4d325a304e5733324c51)](https://codecov.io/gh/MatheusFS/laravel-checkout)

#### Test coverage map

[](#test-coverage-map)

[![](https://camo.githubusercontent.com/9b94586d22bdacb6feb5496d0b8368013a5eabd46eb23bc32811aa0a3ba3f5b5/68747470733a2f2f636f6465636f762e696f2f67682f4d61746865757346532f6c61726176656c2d636865636b6f75742f6772617068732f747265652e7376673f746f6b656e3d4d325a304e5733324c51)](https://camo.githubusercontent.com/9b94586d22bdacb6feb5496d0b8368013a5eabd46eb23bc32811aa0a3ba3f5b5/68747470733a2f2f636f6465636f762e696f2f67682f4d61746865757346532f6c61726176656c2d636865636b6f75742f6772617068732f747265652e7376673f746f6b656e3d4d325a304e5733324c51)

Instalation
-----------

[](#instalation)

```
composer require matheusfs/laravel-checkout
```

```
php artisan vendor:publish --provider="MatheusFS\Laravel\Checkout\CheckoutServiceProvider" --tag="config"
```

Simple payment link redirect
----------------------------

[](#simple-payment-link-redirect)

```
public function buy(Request $request, $id) {

    # Request creates objects from inputs name
    $shipping = (object) $request->shipping;
    $customer = (object) $request->customer;

    $item = Product::find($id); # your product model goes here

    # Normalize address w/ Pagar.me v4 API
    $address = new Address(
        $shipping->street,
        $shipping->street_number,
        $shipping->zipcode,
        'br', # Default country, if you operate w/ more than one country you can modify the request to ask user
        $shipping->state,
        $shipping->city,
        $shipping->neighborhood,
        $shipping->complementary
    );

    # Normalize shipping w/ Pagar.me v4 API
    $Shipping = new Shipping($shipping->name, $address, $shipping->fee, new DateTime());

    # Initiate facade
    $pagarme = new Checkout();

    # Normalize customer and billing w/ Pagar.me v4 API
    $pagarme->setCustomer($customer->name, $customer->cpf, $customer->phone_number, $customer->email);
    $pagarme->setBilling('Entrega', $address);
    $pagarme->setShipping($Shipping);

    # Add normalized item to checkout
    $pagarme->addItem($item->id, $item->label, $item->price);

    # Redirect the user to the generated payment link
    return redirect($pagarme->getPaymentLink($item->price + $shipping->fee));
}
```

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance56

Moderate activity, may be stable

Popularity24

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~3 days

Recently: every ~22 days

Total

31

Last Release

1894d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1c4fb7a5b7db77c45478827b62560c7a947c6abe157cb849d848a9d8d0ae91b6?d=identicon)[MatheusFS](/maintainers/MatheusFS)

---

Top Contributors

[![MatheusFS](https://avatars.githubusercontent.com/u/3452652?v=4)](https://github.com/MatheusFS "MatheusFS (198 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/matheusfs-laravel-checkout/health.svg)

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

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/braintree

Braintree gateway for Omnipay payment processing library

35558.0k3](/packages/omnipay-braintree)

PHPackages © 2026

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