PHPackages                             orq/laravel-yacommerce - 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. orq/laravel-yacommerce

ActiveLibrary

orq/laravel-yacommerce
======================

"The Laravel yacommerce package"

v0.1.0(6y ago)03[1 PRs](https://github.com/rockysynergy/laravel-yacommerce/pulls)MITPHP

Since Nov 18Pushed 5y ago1 watchersCompare

[ Source](https://github.com/rockysynergy/laravel-yacommerce)[ Packagist](https://packagist.org/packages/orq/laravel-yacommerce)[ RSS](/packages/orq-laravel-yacommerce/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (4)Versions (4)Used By (0)

Yet Another Commerce Pakcage for Laravel.

Get Started
===========

[](#get-started)

1. use composesr install the package
2. publish the config, route and views
3. customize them according to your specific needs
4. Look at the config files to update settings(Mostly for WxPay) in the .env file.
5. Add the Routes as below

```
Route::namespace('Admin')->prefix('admin')->name('admin.')->group(function () {
     \Orq\Laravel\YaCommerce\Yac::webRoutes();
});
```

6. For bpshop add below to register method of `App\Providers\AppServiceProvider`

```
    $this->app->bind(
        'Orq\Laravel\YaCommerce\Order\PrepaidUserInterface',
        'App\Service\BpshopUserService'
    );
```

7. Example front end code

```
  //响应“购买”按钮点击事件
  buy: function(e) {
    if (this.data.shopType == 'shop') {
      // 添加到购物车然后跳转到购物车页面
      EXT.wxRequest({
        url: APP.globalData.baseUrl + 'shop_addcartitem',
        data: {
          product_id: e.currentTarget.dataset.productid,
          amount: 1,
          shop_id: this.data.shopId
        },
      }).then(data => {
        wx.navigateTo({
          url: '/pages/shop_cart/shop_cart',
        })
      })
    } else {
      // 没有购物车，直接显示地址表单
      if (this.data.shopType == 'seckill' && this.data.prodInfo.inventory  {
      if (that.data.shopType == 'bp_shop') {
        wx.showModal({
          title: '兑换成功',
        });
        wx.navigateTo({
          url: '/pages/my_bonus/my_bonus?pid='+that.data.shopId,
        })
      }
      if (that.data.shopType == 'seckill') {
        that.pay(data);
      }
    }).catch(err => {
      wx.showModal({
        title: err.message,
      })
    });
  },

  // 调取支付界面
  pay: function(data) {
    let p = data;
    let that = this;

    wx.requestPayment({
      timeStamp: p.timeStamp.toString(),
      nonceStr: p.nonceStr,
      package: p.package,
      signType: p.signType,
      paySign: p.paySign,
      success: function(res) {
        wx.navigateTo({
          url: '/pages/shop/shop?shopType=' + that.shopType,
        })
      }
    })
  },
```

8. `php artisan vendor:publish  --force` to publish assets and views

- 事件

1.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Total

2

Last Release

2330d ago

Major Versions

v0.1.0 → v2.x-dev2019-12-26

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1762050?v=4)[Rocky Ou](/maintainers/rockysynergy)[@rockysynergy](https://github.com/rockysynergy)

---

Top Contributors

[![rockysynergy](https://avatars.githubusercontent.com/u/1762050?v=4)](https://github.com/rockysynergy "rockysynergy (25 commits)")

### Embed Badge

![Health badge](/badges/orq-laravel-yacommerce/health.svg)

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

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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