PHPackages                             parcel4me/parcel4me - 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. parcel4me/parcel4me

ActiveLibrary[Payment Processing](/categories/payments)

parcel4me/parcel4me
===================

A one-click checkout and delivery package for PHP shopping carts

v0.0.12(8y ago)030MITPHP

Since Feb 8Pushed 8y ago3 watchersCompare

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

READMEChangelog (9)Dependencies (2)Versions (13)Used By (0)

Parcel4me (PHP)
===============

[](#parcel4me-php)

This package adds global one-click checkout and delivery to a PHP shopping cart using Parcel4Me.

[![](https://camo.githubusercontent.com/4a94022ac34cecd9e5b662c480c916ffb8e59453474077fa3d2994a896873295/687474703a2f2f70617263656c666f722e6d652f696d616765732f736974652f6c6f676f2d2d686f72697a6f6e74616c2e737667)](https://camo.githubusercontent.com/4a94022ac34cecd9e5b662c480c916ffb8e59453474077fa3d2994a896873295/687474703a2f2f70617263656c666f722e6d652f696d616765732f736974652f6c6f676f2d2d686f72697a6f6e74616c2e737667)

It is a reusable un-opinionated interface that can be used with any existing PHP shopping cart.

Existing Implementations
------------------------

[](#existing-implementations)

These working implementations demonstrate how this Parcel For Me package can be used to intergrate Parcel For Me into an existing PHP Shopping Cart.

- **Bare-bones demo implementation**

- **Wordpress Plugin "ParcelForMe for WooCommerce"**

- **Magento Plugin**

Installation
------------

[](#installation)

### Add the package ([↗](https://packagist.org/packages/parcel4me/parcel4me))

[](#add-the-package-)

```
$ composer require parcel4me/parcel4me

```

*Tested working on PHP version 5.6.7.*

**Note: The updateCaCertificateIfChanged() method requires at least TLS v1.2 (for OpenSSL this means at least version 1.0.1)**

Usage (how to modify an existing PHP shopping cart)
---------------------------------------------------

[](#usage-how-to-modify-an-existing-php-shopping-cart)

### Implementation

[](#implementation)

To bring the Parcel4Me functionality into an existing shopping cart 3 steps are required :

1. Require the composer autoloader :

    `//require_once __DIR__.'/vendor/autoload.php';``require_once __DIR__.'/vendor/parcel4me/parcel4me/src/parcel4me/p4m-shop.php';`

    and implement the `P4M\P4M_Shop` abstract class, which means coding each of the methods listed in `p4m-shop-interface.php`.
2. add the Parcel4Me UI widgets into your shopping cart in the approprate places
    (in the near future these will be available via a CDN)
3. to accept all of the required `p4m/*` API endpoints :
    *(each of which has a corresponding function already implemented in the P4M\_Shop)*

> #### API endpoints to receive on your router
>
> [](#api-endpoints-to-receive-on-your-router)
>
> ##### p4m-login Widget
>
> [](#p4m-login-widget)
>
> - GET p4m/getP4MAccessToken
> - GET p4m/isLocallyLoggedIn
> - GET p4m/localLogin
> - GET p4m/restoreLastCart
>
> ##### p4m-checkout Widget
>
> [](#p4m-checkout-widget)
>
> - GET p4m/checkout (or differently named endpoint)
> - GET p4m/getP4MCart
> - POST p4m/updShippingService
> - GET p4m/applyDiscountCode
> - GET p4m/removeDiscountCode
> - POST p4m/itemQtyChanged
> - POST p4m/purchase
> - GET p4m/paypalSetup
> - GET p4m/paypalCancel
> - GET p4m/purchaseComplete
>
> ##### p4m-register Widget
>
> [](#p4m-register-widget)
>
> - GET p4m/signup

About
-----

[](#about)

This package implements the Host Server methods required by the Parcel4Me Widgets ([See the documentation](http://developer.parcelfor.me/docs/documentation)). It is implemented as an "[Abstract Class](http://php.net/manual/en/language.oop5.abstract.php)" (and "[Interface](http://php.net/manual/en/language.oop5.interfaces.php)") package that can be used for connecting any PHP shopping cart.

### For more information about parcel4me, see the website : [parcelfor.me](http://parcelfor.me/)

[](#for-more-information-about-parcel4me-see-the-website--parcelforme)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~9 days

Recently: every ~21 days

Total

12

Last Release

3271d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6c3417c6116c58cd6a3f545c6d65d747c82603346dcf41ccc97b51078ce4c234?d=identicon)[parcel4me](/maintainers/parcel4me)

---

Top Contributors

[![krisrandall](https://avatars.githubusercontent.com/u/1888888?v=4)](https://github.com/krisrandall "krisrandall (110 commits)")

### Embed Badge

![Health badge](/badges/parcel4me-parcel4me/health.svg)

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

###  Alternatives

[cybersource/rest-client-php

Client SDK for CyberSource REST APIs

39881.3k6](/packages/cybersource-rest-client-php)[paypayopa/php-sdk

PHP SDK for PayPay Open Payment API

18279.6k3](/packages/paypayopa-php-sdk)[yanlongli/app-store-server-api

PHP client for App Store Server API. Manage your customers’ App Store transactions from your server.The App Store Server API is a REST API that you call from your server to request and provide information about your customers' in-app purchases. The App Store signs the transaction and subscription renewal information that this API returns using the JSON Web Signature (JWS) specification.App Store Server API is independent of the app’s installation status on the customer’s devices. The App Store server returns information based on the customer’s in-app purchase history regardless of whether the customer installed, removed, or reinstalled the app on their devices.To request transaction and subscription status information with this API, provide any original transaction identifier that belongs to the customer. The transaction history API responds with a complete list of transactions, 20 at a time, starting with the oldest first. The subscription status API returns the status for all of the customer’s subscriptions, organized by their subscription group identifier.Use the Send Consumption Information endpoint to send information to the App Store when customers request a refund for a consumable in-app purchase, after you receive the CONSUMPTION\_REQUEST App Store server notification. Your data helps inform refund decisions.

2532.0k](/packages/yanlongli-app-store-server-api)[laranex/laravel-myanmar-payments

A Laravel package to deal with Payment Providers from Myanmar

2111.1k](/packages/laranex-laravel-myanmar-payments)

PHPackages © 2026

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