PHPackages                             php-soft/laravel-shopping-cart - 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. php-soft/laravel-shopping-cart

ActiveLibrary[Framework](/categories/framework)

php-soft/laravel-shopping-cart
==============================

Laravel Shopping Cart Module

72312[1 issues](https://github.com/php-soft/laravel-shopping-cart/issues)PHP

Since Feb 23Pushed 10y ago7 watchersCompare

[ Source](https://github.com/php-soft/laravel-shopping-cart)[ Packagist](https://packagist.org/packages/php-soft/laravel-shopping-cart)[ RSS](/packages/php-soft-laravel-shopping-cart/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Shopping Cart Module
============================

[](#laravel-shopping-cart-module)

[![Build Status](https://camo.githubusercontent.com/ee595acf2044245f00eb6c61e03965b8695563978e8b8a626294245eac935186/68747470733a2f2f7472617669732d63692e6f72672f7068702d736f66742f6c61726176656c2d73686f7070696e672d636172742e737667)](https://travis-ci.org/php-soft/laravel-shopping-cart)

> This is RESTful APIs

1. Installation
---------------

[](#1-installation)

Install via composer - edit your `composer.json` to require the package.

```
"require": {
    // ...
    "php-soft/laravel-shopping-cart": "dev-master",
}
```

Then run `composer update` in your terminal to pull it in. Once this has finished, you will need to add the service provider to the `providers` array in your `app.php` config as follows:

```
'providers' => [
    // ...
    PhpSoft\ArrayView\Providers\ArrayViewServiceProvider::class,
    PhpSoft\ShoppingCart\Providers\ShoppingCartServiceProvider::class,
]
```

2. Migration and Seeding
------------------------

[](#2-migration-and-seeding)

Now generate the migration:

```
$ php artisan ps-shoppingcart:migrate
```

It will generate the migration files. You may now run it with the artisan migrate command:

```
$ php artisan migrate
```

Running Seeders with command:

```
$ php artisan db:seed --class=ShoppingCartModuleSeeder
```

3. Usage
--------

[](#3-usage)

Add routes in `app/Http/routes.php`

```
// categories resource
Route::get('categories', '\PhpSoft\ShoppingCart\Controllers\CategoryController@index');
Route::get('categories/{id}', '\PhpSoft\ShoppingCart\Controllers\CategoryController@show');
Route::group(['middleware'=>'auth'], function() { // use middleware jwt.auth if use JSON Web Token
    Route::post('categories', [
        'middleware' => 'permission:create-category',
        'uses' => '\PhpSoft\ShoppingCart\Controllers\CategoryController@store'
    ]);
    Route::put('categories/{id}', [
        'middleware' => 'permission:update-category',
        'uses' => '\PhpSoft\ShoppingCart\Controllers\CategoryController@update'
    ]);
    Route::delete('categories/{id}', [
        'middleware' => 'permission:delete-category',
        'uses' => '\PhpSoft\ShoppingCart\Controllers\CategoryController@destroy'
    ]);
});

Route::get('categories/{id}/products', '\PhpSoft\ShoppingCart\Controllers\ProductController@index');

// products resource
Route::get('products', '\PhpSoft\ShoppingCart\Controllers\ProductController@index');
Route::get('products/{id}', '\PhpSoft\ShoppingCart\Controllers\ProductController@show');
Route::group(['middleware'=>'auth'], function() { // use middleware jwt.auth if use JSON Web Token
    Route::post('products', [
        'middleware' => 'permission:create-product',
        'uses' => '\PhpSoft\ShoppingCart\Controllers\ProductController@store'
    ]);
    Route::put('products/{id}', [
        'middleware' => 'permission:update-product',
        'uses' => '\PhpSoft\ShoppingCart\Controllers\ProductController@update'
    ]);
    Route::delete('products/{id}', [
        'middleware' => 'permission:delete-product',
        'uses' => '\PhpSoft\ShoppingCart\Controllers\ProductController@destroy'
    ]);
});
```

***You can remove middlewares if your application don't require check authenticate and permission!***

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7126782?v=4)[Huy Ta Ba Thanh](/maintainers/huytbt)[@huytbt](https://github.com/huytbt)

---

Top Contributors

[![huytbt](https://avatars.githubusercontent.com/u/7126782?v=4)](https://github.com/huytbt "huytbt (91 commits)")

### Embed Badge

![Health badge](/badges/php-soft-laravel-shopping-cart/health.svg)

```
[![Health](https://phpackages.com/badges/php-soft-laravel-shopping-cart/health.svg)](https://phpackages.com/packages/php-soft-laravel-shopping-cart)
```

###  Alternatives

[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k39.6M299](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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