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(9y ago)030MITPHP

Since Feb 8Pushed 9y ago3 watchersCompare

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

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 41% 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

3323d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/25675787?v=4)[Parcel4me](/maintainers/parcel4me)[@parcel4me](https://github.com/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

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

PHP SDK for PayPay Open Payment API

18304.2k4](/packages/paypayopa-php-sdk)

PHPackages © 2026

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