PHPackages                             railroad/ecommerce - 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. [Framework](/categories/framework)
4. /
5. railroad/ecommerce

ActiveLibrary[Framework](/categories/framework)

railroad/ecommerce
==================

Ecommerce system

v6.0.1(1y ago)080.5k[1 PRs](https://github.com/railroadmedia/ecommerce/pulls)4PHPPHP ^8.2

Since May 10Pushed 1y ago2 watchersCompare

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

READMEChangelog (2)Dependencies (17)Versions (662)Used By (4)

Ecommerce
=========

[](#ecommerce)

- [Ecommerce](#ecommerce)
    - [Install](#install)
    - [API Reference](#api-reference)
        - [Add item to cart - forms controller](#add-item-to-cart---forms-controller)
            - [Request Example](#request-example)
            - [Request Parameters](#request-parameters)

E-commerce system

Install
-------

[](#install)

With composer command `composer require railroad/ecommerce:1.0.19`

API Reference
-------------

[](#api-reference)

### Add item to cart - forms controller

[](#add-item-to-cart---forms-controller)

```
GET /ecommerce/add-to-cart

```

#### Request Example

[](#request-example)

```

    Submit

```

#### Request Parameters

[](#request-parameters)

path|query|bodykeyrequireddefaultdescription|notesqueryproductsyesProducts array. Array keys will be matched to product SKU and array values to product quantity.queryredirectnoredirect()-&gt;back()If this is set the request will redirect to this url; otherwise will be redirect backquerylockednoIf it's true 'lock' the cart so when other items are added it clears the cart firstquerypromo-codenoPromo code#### Response Example

[](#response-example)

`302`Redirects to previous url or to path passed in with redirect param.

On the session are flashed the following data:
\* `success` - boolean value
\* `addedProducts` - array with added product info
\* `cartSubTotal` - cart items subtotal price
\* `cartNumberOfItems` - the number of cart items
\* `notAvailableProducts` - array with the error messages for the products that could not be added to cart

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity95

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 95.7% 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 ~4 days

Recently: every ~68 days

Total

592

Last Release

620d ago

Major Versions

v4.0.33 → v5.0.742023-04-12

v4.0.34 → v5.0.822023-05-24

v4.0.35 → v5.0.1002023-08-15

v4.0.36 → v5.0.1072023-09-14

v5.0.114 → v6.0.02024-08-19

PHP version history (4 changes)v0.0.01PHP ~7

v2.0.0PHP ~7.1

v5.0.0PHP ^8.1

v6.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/205e2d39157a11094e112cd3b2433bdc3449a3c30d67769f322b33169c3b8c70?d=identicon)[calebfavor](/maintainers/calebfavor)

---

Top Contributors

[![roxanariza](https://avatars.githubusercontent.com/u/11618485?v=4)](https://github.com/roxanariza "roxanariza (90 commits)")[![calebfavor](https://avatars.githubusercontent.com/u/5841780?v=4)](https://github.com/calebfavor "calebfavor (2 commits)")[![rizaroxana](https://avatars.githubusercontent.com/u/30104367?v=4)](https://github.com/rizaroxana "rizaroxana (1 commits)")[![vasile-dincuta](https://avatars.githubusercontent.com/u/2247475?v=4)](https://github.com/vasile-dincuta "vasile-dincuta (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.7k509.9M17.0k](/packages/laravel-framework)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[shopware/shopware

Shopware 5 is an open source e-commerce software made in Germany

1.3k746.6k35](/packages/shopware-shopware)

PHPackages © 2026

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