Download the PHP package misaf/vendra-product without Composer

On this page you can find all versions of the php package misaf/vendra-product. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package vendra-product

Vendra Product

Tenant-aware product management for Vendra applications.

Support\ProductStockRestorer binds Misaf\VendraSupport\Contracts\StockRestorer, supplies Product’s morph alias, and delegates restoration to RestockProductsAction. It preserves tenant scoping, restores soft-deleted products, and leaves in_stock unchanged. Product imports no Order or Order API types.

Features

Requirements

Optional:

Installation

Optional configuration and translations:

The service provider and Filament plugin are auto-registered.

Usage

Create a category:

Create a product:

Add a price:

Load products with relationships:

Quote purchases for a checkout:

The quoter loads every requested product in one query and keeps the request keys. A product can be bought when its category is active, it is in stock with enough quantity, and it has a price in the currency; otherwise the result is Unavailable, OutOfStock, or PriceMissing. Prices are history, so the newest price in the currency applies, matching latestProductPrice. It checks stock but never takes it, and knows nothing about carts or orders.

Take and return stock with DeductProductStockAction and RestockProductsAction, both keyed by product id. Deduction locks the products in id order, rechecks in_stock and the quantity under the lock, and takes nothing when any product falls short, throwing InsufficientProductStockException with that product's id. Taking a product's last unit switches in_stock off. Restocking never switches it back on, so the merchant re-enables the product. Restocking also returns stock to deleted products.

Duplicate a product with DuplicateProductAction. It gives the copy a name and slug no other product in the tenant uses, and copies its prices, media, attribute selections, and tags in one transaction.

Optional tags

Install misaf/vendra-tagger in the host application to enable the Tags tab and table column automatically. Product does not require or import Tagger or Spatie Tags; both packages communicate through the TagResolver contract in misaf/vendra-support.

Create tags with the reserved product type in the Tagger resource, then assign them from the product form:

Without Tagger, Product continues working without tag queries or tag UI.

Filament

Resources are available in the shared Catalog cluster on the admin panel:

Demo seeders use bundled JSON fixtures in production and when their declared factory classes are unavailable. Local monorepo development continues to use factories when they are autoloadable.

Testing

Run the package checks from the project root:

License

MIT. See LICENSE.


All versions of vendra-product with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
awcodes/filament-badgeable-column Version ^4.0
cknow/laravel-money Version ^8.5
lara-zeus/spatie-translatable Version ^2.0.1
misaf/filament-jalali Version ^5.1.4
misaf/vendra-multimedia Version self.version
misaf/vendra-support Version self.version
spatie/eloquent-sortable Version ^5.0.1
spatie/laravel-package-tools Version ^1.93.1
spatie/laravel-sluggable Version ^4.0.2
staudenmeir/laravel-adjacency-list Version ^1.26.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package misaf/vendra-product contains the following files

Loading the files please wait ...