PHPackages                             yab/quazar - 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. yab/quazar

Abandoned → [grafite/commerce](/?search=grafite%2Fcommerce)ArchivedLibrary[Payment Processing](/categories/payments)

yab/quazar
==========

An E-Commerce platform for Laravel Apps using Grafite CMS

v2.0.3(7y ago)471.3k12MITPHP

Since Mar 3Pushed 6y ago4 watchersCompare

[ Source](https://github.com/YABhq/Quazar)[ Packagist](https://packagist.org/packages/yab/quazar)[ RSS](/packages/yab-quazar/feed)WikiDiscussions develop Synced 2mo ago

READMEChangelog (1)Dependencies (10)Versions (23)Used By (0)

Grafite Commerce
================

[](#grafite-commerce)

> Grafite has archived this project and no longer supports or develops its code. We recommend using only as a source of ideas for your own code.

**Commerce** - An e-commerce package for Laravel apps using Grafite CMS

[![Build Status](https://camo.githubusercontent.com/36cc569d91c0628ca5725156b7049217aaa4fe9e4a6df54416d8044fae8f4179/68747470733a2f2f7472617669732d63692e6f72672f47726166697465496e632f436f6d6d657263652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/GrafiteInc/Commerce)[![Packagist](https://camo.githubusercontent.com/bfe471f07d9124613213cc4e21833ded6ce2b28de958c8d9c8849a1e41cb13cc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f677261666974652f636f6d6d657263652e7376673f6d61784167653d32353932303030)](https://packagist.org/packages/grafite/commerce)[![license](https://camo.githubusercontent.com/ee061e6c1798bd95fa104c910010a3119850b186c323a1c848b3abcb029dc764/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6173686170652f6170697374617475732e7376673f6d61784167653d32353932303030)](https://packagist.org/packages/grafite/commerce)

Commerce is a e-commerce package for Grafite CMS. It is an elegant solution for adding an e-commerce platform to your Grafite CMS instance. This means it can be added to existing apps, or fresh installs and setups of the Grafite CMS. You can control: products, subscriptions, transaction history, orders, and some year by year analytics. Utilizing the power of Stripe, you can spin up a store, where you can offer subscriptions, digital products for download, or even physical products for order shipments. Integrate any external services to handle shipping rates, and tracking number updates. Take control of the many things you make, and build the store you've always wanted.

##### Author(s):

[](#authors)

- [Matt Lantz](https://github.com/mlantz) ([@mattylantz](http://twitter.com/mattylantz), mattlantz at gmail dot com)

Documentation
=============

[](#documentation)

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

[](#installation)

```
composer require grafite/commerce
composer require laravel/cashier

```

Don't worry about the laravel cashier installation, the only points of interest are specified below:

Add these to your `config/app.php`:

```
Grafite\Commerce\GrafiteCommerceModuleProvider::class,
Laravel\Cashier\CashierServiceProvider::class,

```

Setup
-----

[](#setup)

Then publish the vendor assets etc:

```
php artisan vendor:publish
```

Add the following to your `app/Http/Kernel.php` to the `routeMiddleware` array:

```
'isAjax' => \Grafite\Commerce\Http\Middleware\isAjax::class,

```

Add the following trait to the `app/Models/User.php`:

```
use Grafite\Commerce\Services\Concerns\hasFavorites;

```

Add the following to your `app/Providers/RouteServiceProvider.php` to the `mapWebRoutes` method inside the group method as a closure:

```
require base_path('routes/commerce.php');

```

Don't worry about the laravel cashier installation, the only points of interest are specified below:

Change your `config/services.php` to match the following:

```
'stripe' => [
    'model' => App\Models\UserMeta::class,
    'key' => env('STRIPE_KEY'),
    'secret' => env('STRIPE_SECRET'),
],
```

Now you need to add the Billable trait to the `App\Models\UserMeta::class`

```
use \Laravel\Cashier\Billable;
```

Then migrate!

```
php artisan migrate
```

If you wish to maintain consistency with the store accross your login, user settings etc you can set the extends to `@extends('commerce-frontend::layouts.store')`Views you may wish to change for optimal consistency:

```
views/
    auth/
        login.blade.php
        register.blade.php
        passwords/
            email.blade.php
            reset.blade.php
    user/
        password.blade.php
        settings.blade.php

```

Notes on Grafite CMS &amp; Builder
----------------------------------

[](#notes-on-grafite-cms--builder)

Grafite Commerce is intented to be used with Grafite CMS so use outside of that context is to be done at your own risk. Similarly, though Grafite CMS is able to be added to any existing Laravel 5.6+ application, the documentation above is assuming you used the Grafite CMS setup command `php artisan graifte:cms` command, which is heavily integrated with Grafite Builder. If you did not, you may have to make adjustments that are not listed here.

### LogisticService

[](#logisticservice)

The logistic service is published to your app specifically. The intention is for it to handle **hooks** on the various events that occur within your store purchase flow. The `LogisticService` handles the following events:

```
shipping($user)
getTaxPercent($user)
afterPurchase($user, $transaction, $cart, $result)
afterSubscription($user, $plan)
afterRefundRequest($transaction)
afterRefund($transaction)
cancelSubscription($user, $plan)
afterPlaceOrder($user, $transaction, $cart)
orderCreated($order)
shipOrder($order)
cancelOrder($order)
```

Extending
---------

[](#extending)

With any e-commerce platform there is a need to expand to fit your custom needs. With Grafite Commerce we have made this as easy as possible. We publish out the JavaScript files for cart interaction, and controllers and routes for general "browsing" of your store.

---

### Public files:

[](#public-files)

- js/store.js
- js/card.js
- js/purchases.js
- css/shop.css

Within the `public` directory you will find a couple published CSS and JavaScript files which handle the elements of the Grafite Commerce experience. Feel free to change these as you desire but be mindful of URL changes since they may require route changes.

### Controllers

[](#controllers)

There are a few controllers added to your app in the Grafite Commerce namespace. These are general controllers which you may wish to customize based on your app's setup. This is similar to Grafite CMS in the sense that you may wish to change certain parts. Be very mindful of how much you can impact the functionality of the Grafite Commerce store base by changing these files. Within the following namespace you should find these controllers which can be customized.

```
app/Http/Controllers/Commerce/

```

- CardController.php
- CartController.php
- CheckoutController.php
- FavoriteController.php
- OrderController.php
- PlanController.php
- ProductController.php
- ProfileController.php
- PurchaseController.php
- StoreController.php
- SubscriptionController.php

### Routes

[](#routes)

Routes can be customized in the `routes/commerce.php` file. Be mindful of changes here that can impact your JavaScript files above.

### Views

[](#views)

There are Grafite Commerce view files that are published your app which you can modify, however, if you wish to edit the package views then you will need to update them in the `resources/commerce` directory.

Admin UI
--------

[](#admin-ui)

There are some very easy to use Admin components set up with Grafite Commerce but feel free to clone the repo and add as you please.

Config
------

[](#config)

Grafite Commerce has a handful of config options.

KeyDescriptionnameThe name of the storecurrencyThe currency for your store, in relation to productstaxes\_include\_shippingWhether or not you want the taxes to include the shipping ratestore\_url\_prefixThe store URL prefix (if changed you MUST update the published JS files as well)currenciesAvailable currencies for subscription plan generatingsubscriptionsIf you want to enable/disable subscriptions as items in the storeformsForms config for commerce componentsGeneral Requirements
--------------------

[](#general-requirements)

1. PHP 7.1.3+
2. MySQL 5.7+

More Specific Requirements
--------------------------

[](#more-specific-requirements)

3. OpenSSL
4. Laravel 5.6+
5. Grafite CMS 3.0+
6. Stripe Account

Compatibility and Support
-------------------------

[](#compatibility-and-support)

Laravel VersionPackage TagSupported5.6.x2.0.xno5.4.x - 5.5.x1.0.xnoLicense
-------

[](#license)

Grafite Commerce is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

### Bug Reporting and Feature Requests

[](#bug-reporting-and-feature-requests)

Please add as many details as possible regarding submission of issues and feature requests

### Disclaimer

[](#disclaimer)

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 84.1% 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 ~29 days

Recently: every ~79 days

Total

20

Last Release

2803d ago

Major Versions

v0.2.4 → v1.0.02017-10-25

v1.0.1 → v2.0.02018-04-14

### Community

Maintainers

![](https://www.gravatar.com/avatar/81d026d950739c978b844ac79e6b454e7fedc95ceffdcc4da09893c2497c7255?d=identicon)[mlantz](/maintainers/mlantz)

---

Top Contributors

[![mlantz](https://avatars.githubusercontent.com/u/1065551?v=4)](https://github.com/mlantz "mlantz (169 commits)")[![jimhlad](https://avatars.githubusercontent.com/u/6893042?v=4)](https://github.com/jimhlad "jimhlad (31 commits)")[![brBart](https://avatars.githubusercontent.com/u/42514315?v=4)](https://github.com/brBart "brBart (1 commits)")

---

Tags

e-commercelaravelstripe

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laraveldaily/laravel-invoices

Missing invoices for Laravel

1.5k1.3M4](/packages/laraveldaily-laravel-invoices)[lanos/laravel-cashier-stripe-connect

Adds Stripe Connect functionality to Laravel's main billing package, Cashier.

84138.9k](/packages/lanos-laravel-cashier-stripe-connect)[expdev07/laravel-cashier-stripe-connect

Adds Stripe Connect functionality to Laravel's main billing package, Cashier.

63135.6k](/packages/expdev07-laravel-cashier-stripe-connect)[maartenpaauw/filament-cashier-billing-provider

Filament billing provider for Laravel Cashier

10228.1k](/packages/maartenpaauw-filament-cashier-billing-provider)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)

PHPackages © 2026

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