tomatophp/filament-ecommerce
Composer 安装命令:
composer require tomatophp/filament-ecommerce
包简介
Build your own ecommerce store with FilamentPHP with the Power of Tomato CMS Builder
README 文档
README
Filament Ecommerce Builder
Build your own ecommerce store with FilamentPHP with the Power of Tomato CMS Builder
Installation
composer require tomatophp/filament-ecommerce
we need the Media Library plugin to be installed and migrated you can use this command to publish the migration
php artisan vendor:publish --provider="Spatie\MediaLibrary\MediaLibraryServiceProvider" --tag="medialibrary-migrations"
now you need to install the settings hub use these commands
php artisan vendor:publish --provider="Spatie\LaravelSettings\LaravelSettingsServiceProvider" --tag="migrations" php artisan filament-settings-hub:install
then you need to publish the account model
php artisan vendor:publish --tag="filament-accounts-model"
after installing your package please run this command
php artisan filament-ecommerce:install
finally register the plugin on /app/Providers/Filament/AdminPanelProvider.php
->plugin( \TomatoPHP\FilamentEcommerce\FilamentEcommercePlugin::make() ->useCoupon() ->useGiftCard() ->useReferralCode() ->allowOrderExport() ->allowOrderImport() ->useWidgets() )
there is some feature you can disable it
->plugin( \TomatoPHP\FilamentEcommerce\FilamentEcommercePlugin::make() ->useAccounts(false) ->useOrderSettings(false) ->useSettings(false) ->showOrderAccount(false) ->allowOrderCreate(false) )
Features
- Multi Company / Branches Management
- Product Management
- Product Table Group By Type
- Product Multi Variants
- Product Multi Images
- Product Multi Languages Content
- Shipping Vendor Management
- Order Management
- Order Logs
- Order Shipping Action
- Order Change Status Action
- Order Table Group By Status
- Order Receipt Print
- Order Table Summary
- Order Settings
- Order Export
- Order Import
- Order Charts Widgets
- Coupon Management
- Gift Card Management
- Refferal Management
- Coupons Service Class
- Add Discount To Order Using Coupon
- Product Variants On Order
- Gitf Card Services
- Gift Card Apply To Account Wallet
- Pay Order With Wallet
- Pay Order With Gift Card
- Refferal Code Services
- Refferal Code Middleware Counter
- Order PDF Export
- Order Facade Methods
- Order Tracking Page
- Product Import
- Product Export
- Product Clone
- Cart Manager
- Comparison Between Products
- Wishlist Manager
- Product Download for Digital Products
- Search History Manager
- Filament CMS Page Builder Integration
- Filament CMS Themes Integration
- Product Service Class
- Ecommerce Service Class
- Ecommerce APIs
Screenshots
Use Coupon Service
you can use coupon service to check if coupon is valid or not
you can use this method to check for selected Order
use \TomatoPHP\FilamentEcommerce\Facades\FilamentEcommerce; FilamentEcommerce::coupon()->check('coupon_code', \TomatoPHP\FilamentEcommerce\Models\Order::find(1));
or you can check the code for selected products
use \TomatoPHP\FilamentEcommerce\Facades\FilamentEcommerce; FilamentEcommerce::coupon()->products([1,2,4])->check('coupon_code');
or you can get the direct discount amount of the code
use \TomatoPHP\FilamentEcommerce\Facades\FilamentEcommerce; FilamentEcommerce::coupon()->products([1,2,4])->discount('coupon_code');
and it's the same as check you can apply to selected order or selected products.
Use Filament Shield
you can use the shield to protect your resource and allow user roles by install it first
composer require bezhansalleh/filament-shield
Add the Spatie\Permission\Traits\HasRoles trait to your User model(s):
use Illuminate\Foundation\Auth\User as Authenticatable; use Spatie\Permission\Traits\HasRoles; class User extends Authenticatable { use HasRoles; // ... }
Publish the config file then setup your configuration:
->plugin(\BezhanSalleh\FilamentShield\FilamentShieldPlugin::make())
Now run the following command to install shield:
php artisan shield:install
Now we can publish the package assets.
php artisan vendor:publish --tag="filament-users-config"
now you need to allow it on the plugin options
->plugin(\TomatoPHP\FilamentEcommerce\FilamentEcommercePlugin::make()->allowShield())
for more information check the Filament Shield
Publish Assets
you can publish config file by use this command
php artisan vendor:publish --tag="filament-ecommerce-config"
you can publish views file by use this command
php artisan vendor:publish --tag="filament-ecommerce-views"
you can publish languages file by use this command
php artisan vendor:publish --tag="filament-ecommerce-lang"
you can publish migrations file by use this command
php artisan vendor:publish --tag="filament-ecommerce-migrations"
Other Filament Packages
Checkout our Awesome TomatoPHP
tomatophp/filament-ecommerce 适用场景与选型建议
tomatophp/filament-ecommerce 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4.52k 次下载、GitHub Stars 达 98, 最近一次更新时间为 2024 年 05 月 09 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「ecommerce」 「orders」 「cart」 「laravel」 「filament」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 tomatophp/filament-ecommerce 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 tomatophp/filament-ecommerce 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 tomatophp/filament-ecommerce 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Nevogate Payment Gateway SDK
Add Shopify like fulfillments to your Craft Commerce orders.
Dealing with payments through the Egyptian payment gateway PayMob
A PHP (and Laravel) package to interface with the Snipcart api.
Silverstripe module for creating and managing generic 'Order' objects
PayPal's PHP SDK for Checkout REST APIs
统计信息
- 总下载量: 4.52k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 98
- 点击次数: 25
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-05-09











