{"id":22238860,"url":"https://github.com/tomatophp/filament-ecommerce","last_synced_at":"2025-04-05T02:07:05.111Z","repository":{"id":239009359,"uuid":"798256372","full_name":"tomatophp/filament-ecommerce","owner":"tomatophp","description":"Build your own ecommerce store with Filament \u0026 Splade","archived":false,"fork":false,"pushed_at":"2024-10-02T11:05:25.000Z","size":4146,"stargazers_count":68,"open_issues_count":4,"forks_count":15,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-05T01:33:58.328Z","etag":null,"topics":["delivery","ecommerce","ecommerce-application","filament-plugin","orders","shipping"],"latest_commit_sha":null,"homepage":"https://tomatophp.com/en/open-source/filament-ecommerce","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tomatophp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["3x1io"]}},"created_at":"2024-05-09T12:14:40.000Z","updated_at":"2025-04-03T12:28:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"dc82ab33-725d-416c-9caa-7c0bf522c22c","html_url":"https://github.com/tomatophp/filament-ecommerce","commit_stats":null,"previous_names":["tomatophp/filament-ecommerce"],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomatophp%2Ffilament-ecommerce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomatophp%2Ffilament-ecommerce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomatophp%2Ffilament-ecommerce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomatophp%2Ffilament-ecommerce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomatophp","download_url":"https://codeload.github.com/tomatophp/filament-ecommerce/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276096,"owners_count":20912287,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["delivery","ecommerce","ecommerce-application","filament-plugin","orders","shipping"],"created_at":"2024-12-03T03:17:27.118Z","updated_at":"2025-04-05T02:07:00.096Z","avatar_url":"https://github.com/tomatophp.png","language":"PHP","funding_links":["https://github.com/sponsors/3x1io"],"categories":[],"sub_categories":[],"readme":"![Screenshot](https://raw.githubusercontent.com/tomatophp/filament-ecommerce/master/arts/3x1io-tomato-ecommerce.jpg)\n\n# Filament Ecommerce Builder\n\n[![Latest Stable Version](https://poser.pugx.org/tomatophp/filament-ecommerce/version.svg)](https://packagist.org/packages/tomatophp/filament-ecommerce)\n[![License](https://poser.pugx.org/tomatophp/filament-ecommerce/license.svg)](https://packagist.org/packages/tomatophp/filament-ecommerce)\n[![Downloads](https://poser.pugx.org/tomatophp/filament-ecommerce/d/total.svg)](https://packagist.org/packages/tomatophp/filament-ecommerce)\n\n\nBuild your own ecommerce store with FilamentPHP with the Power of Tomato CMS Builder\n\n## Installation\n\n```bash\ncomposer require tomatophp/filament-ecommerce\n```\n\nwe need the Media Library plugin to be installed and migrated you can use this command to publish the migration\n\n```bash\nphp artisan vendor:publish --provider=\"Spatie\\MediaLibrary\\MediaLibraryServiceProvider\" --tag=\"medialibrary-migrations\"\n```\n\nnow you need to install the settings hub use these commands\n\n```bash\nphp artisan vendor:publish --provider=\"Spatie\\LaravelSettings\\LaravelSettingsServiceProvider\" --tag=\"migrations\"\nphp artisan filament-settings-hub:install\n```\n\nthen you need to publish the account model\n\n```bash\nphp artisan vendor:publish --tag=\"filament-accounts-model\"\n```\n\nafter installing your package please run this command\n\n```bash\nphp artisan filament-ecommerce:install\n```\n\nfinally register the plugin on `/app/Providers/Filament/AdminPanelProvider.php`\n\n```php\n-\u003eplugin(\n    \\TomatoPHP\\FilamentEcommerce\\FilamentEcommercePlugin::make()\n        -\u003euseCoupon()\n        -\u003euseGiftCard()\n        -\u003euseReferralCode()\n        -\u003eallowOrderExport()\n        -\u003eallowOrderImport()\n        -\u003euseWidgets()\n)\n```\n\nthere is some feature you can disable it\n\n```php\n-\u003eplugin(\n    \\TomatoPHP\\FilamentEcommerce\\FilamentEcommercePlugin::make()\n        -\u003euseAccounts(false)\n        -\u003euseOrderSettings(false)\n        -\u003euseSettings(false)\n        -\u003eshowOrderAccount(false)\n        -\u003eallowOrderCreate(false)\n)\n```\n\n## Features\n\n- [x] Multi Company / Branches Management\n- [x] Product Management\n- [x] Product Table Group By Type\n- [x] Product Multi Variants\n- [x] Product Multi Images\n- [x] Product Multi Languages Content\n- [x] Shipping Vendor Management\n- [x] Order Management\n- [x] Order Logs\n- [x] Order Shipping Action\n- [x] Order Change Status Action\n- [x] Order Table Group By Status\n- [x] Order Receipt Print\n- [x] Order Table Summary\n- [x] Order Settings\n- [x] Order Export\n- [x] Order Import\n- [x] Order Charts Widgets\n- [x] Coupon Management\n- [x] Gift Card Management\n- [x] Refferal Management\n- [x] Coupons Service Class\n- [x] Add Discount To Order Using Coupon\n- [ ] Product Variants On Order\n- [ ] Gitf Card Services\n- [ ] Gift Card Apply To Account Wallet\n- [ ] Pay Order With Wallet\n- [ ] Pay Order With Gift Card\n- [ ] Refferal Code Services\n- [ ] Refferal Code Middleware Counter\n- [ ] Order PDF Export\n- [ ] Order Facade Methods\n- [ ] Order Tracking Page\n- [ ] Product Import\n- [ ] Product Export\n- [ ] Product Clone\n- [ ] Cart Manager\n- [ ] Comparison Between Products\n- [ ] Wishlist Manager\n- [ ] Product Download for Digital Products\n- [ ] Search History Manager\n- [ ] Filament CMS Page Builder Integration\n- [ ] Filament CMS Themes Integration\n- [ ] Product Service Class\n- [ ] Ecommerce Service Class\n- [ ] Ecommerce APIs\n\n## Screenshots\n\n![Branches](https://raw.githubusercontent.com/tomatophp/filament-ecommerce/master/arts/branches.png)\n![Companies](https://raw.githubusercontent.com/tomatophp/filament-ecommerce/master/arts/companies.png)\n![Edit Company](https://raw.githubusercontent.com/tomatophp/filament-ecommerce/master/arts/edit-company.png)\n![Products List](https://raw.githubusercontent.com/tomatophp/filament-ecommerce/master/arts/products.png)\n![Create Product](https://raw.githubusercontent.com/tomatophp/filament-ecommerce/master/arts/create-products.png)\n![Create Order](https://raw.githubusercontent.com/tomatophp/filament-ecommerce/master/arts/create-orders.png)\n![Order Items](https://raw.githubusercontent.com/tomatophp/filament-ecommerce/master/arts/order-items.png)\n![Orders List](https://raw.githubusercontent.com/tomatophp/filament-ecommerce/master/arts/orders.png)\n![Deliveries](https://raw.githubusercontent.com/tomatophp/filament-ecommerce/master/arts/deliveries.png)\n![Edit Shipping](https://raw.githubusercontent.com/tomatophp/filament-ecommerce/master/arts/edit-shipping-vendors.png)\n![Shipping](https://raw.githubusercontent.com/tomatophp/filament-ecommerce/master/arts/shipping-vendors.png)\n\n## Use Coupon Service\n\nyou can use coupon service to check if coupon is valid or not\n\nyou can use this method to check for selected Order\n\n```php\nuse \\TomatoPHP\\FilamentEcommerce\\Facades\\FilamentEcommerce;\n\nFilamentEcommerce::coupon()-\u003echeck('coupon_code', \\TomatoPHP\\FilamentEcommerce\\Models\\Order::find(1));\n```\n\nor you can check the code for selected products\n\n```php\nuse \\TomatoPHP\\FilamentEcommerce\\Facades\\FilamentEcommerce;\n\nFilamentEcommerce::coupon()-\u003eproducts([1,2,4])-\u003echeck('coupon_code');\n```\n\nor you can get the direct discount amount of the code \n\n```php\nuse \\TomatoPHP\\FilamentEcommerce\\Facades\\FilamentEcommerce;\n\nFilamentEcommerce::coupon()-\u003eproducts([1,2,4])-\u003ediscount('coupon_code');\n```\n\nand it's the same as check you can apply to selected order or selected products.\n\n\n## Use Filament Shield\n\nyou can use the shield to protect your resource and allow user roles by install it first\n\n```bash\ncomposer require bezhansalleh/filament-shield\n```\n\nAdd the Spatie\\Permission\\Traits\\HasRoles trait to your User model(s):\n\n```php\nuse Illuminate\\Foundation\\Auth\\User as Authenticatable;\nuse Spatie\\Permission\\Traits\\HasRoles;\n\nclass User extends Authenticatable\n{\n    use HasRoles;\n\n    // ...\n}\n```\nPublish the config file then setup your configuration:\n\n```php\n-\u003eplugin(\\BezhanSalleh\\FilamentShield\\FilamentShieldPlugin::make())\n```\n\nNow run the following command to install shield:\n\n```bash\nphp artisan shield:install\n```\n\nNow we can [publish the package assets]([https://github.com/bezhanSalleh/filament-shield](https://github.com/tomatophp/filament-users?tab=readme-ov-file#publish-assets)).\n\n```bash\nphp artisan vendor:publish --tag=\"filament-users-config\"\n```\n\nnow you need to allow it on the plugin options\n\n```php\n-\u003eplugin(\\TomatoPHP\\FilamentEcommerce\\FilamentEcommercePlugin::make()-\u003eallowShield())\n```\n\nfor more information check the [Filament Shield](https://github.com/bezhanSalleh/filament-shield)\n\n## Publish Assets\n\nyou can publish config file by use this command\n\n```bash\nphp artisan vendor:publish --tag=\"filament-ecommerce-config\"\n```\n\nyou can publish views file by use this command\n\n```bash\nphp artisan vendor:publish --tag=\"filament-ecommerce-views\"\n```\n\nyou can publish languages file by use this command\n\n```bash\nphp artisan vendor:publish --tag=\"filament-ecommerce-lang\"\n```\n\nyou can publish migrations file by use this command\n\n```bash\nphp artisan vendor:publish --tag=\"filament-ecommerce-migrations\"\n```\n\n## Other Filament Packages\n\nCheckout our [Awesome TomatoPHP](https://github.com/tomatophp/awesome)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomatophp%2Ffilament-ecommerce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomatophp%2Ffilament-ecommerce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomatophp%2Ffilament-ecommerce/lists"}