Download the PHP package aldeebhasan/inventorix without Composer

On this page you can find all versions of the php package aldeebhasan/inventorix. 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 inventorix

Inventorix — Modern Inventory Control for Laravel

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Codacy Badge Total Downloads

Inventorix is a Laravel package that adds full inventory control to any Eloquent model. It handles stock tracking, movement history, reservations, FIFO/LIFO/Average costing, threshold alerts, serial number tracking, transaction rollback, and demand velocity — all without changing your existing models.

Installation

Publish and run the migrations:

Publish the config file:

Setup

Add the HasInventory trait to any Eloquent model you want to track:

You must have at least one Location record in the database before performing stock operations. Locations represent warehouses, bins, or any physical storage unit and support parent/child hierarchies via parent_id.

Basic Usage

You can use the HasInventory trait methods directly on the model, or the Inventorix facade for lower-level control.

Stock Operations

StockOperationDto

Pass a StockOperationDto as the last argument to any operation to control its behaviour:

Bulk / Grouped Transactions

Group multiple operations into a single atomic transaction:

If any operation inside the callback throws, the transaction is marked RolledBack and the exception propagates.

Transaction Rollback

Reverse a committed transaction by creating a compensating reversal:

This replays every movement in reverse (adds become deducts and vice-versa), handles serial number compensation automatically, and fires a TransactionRolledBack event.

Reservations

Reservations hold stock aside without permanently deducting it:

Reservations can have a TTL set via config (reservation_ttl_minutes) or per-call via StockOperationDto::$expiresAt. Run the scheduled command to expire stale reservations:

Querying Stock

Valuation

Costing strategy is set in config (fifo, lifo, or average). Movements must carry a cost_per_unit value (set via StockOperationDto::$cost) for movement-based costing to apply.

Demand Velocity

Thresholds & Alerts

Threshold checks run automatically after every addStock, deductStock, and adjustStock call. When stock crosses a boundary the package fires LowStockReached or OverstockReached. To find all items currently below threshold:

Alert events can optionally be dispatched on a queue (queue_alerts / alert_queue in config). Threshold records are cached in-memory (configurable TTL via threshold_cache) to avoid a DB hit on every stock write.

Serial Number Tracking

Enable in config:

When enabled, every addStock auto-generates a ULID serial number per unit, and every deductStock auto-consumes the oldest available serials at that location (FIFO). You can also supply explicit serial numbers:

Reservations also lock specific serials:

Lifecycle Hooks

Register callbacks that fire before/after add and deduct operations:

Custom Costing Strategy Per Model

Override the costing strategy for a specific model by implementing inventorixCostingStrategy():

Events

All events live in Aldeebhasan\Inventorix\Events\. Disable all events or specific ones in config:

Event Fired when
StockAdded Stock is added
StockDeducted Stock is deducted
StockAdjusted Stock is adjusted
StockTransferred A transfer completes
StockReserved A reservation is created
ReservationReleased A reservation is released
ReservationFulfilled A reservation is fulfilled
ReservationExpired A reservation is expired by the command
LowStockReached Stock falls at or below a min threshold
OverstockReached Stock rises at or above a max threshold
TransactionRolledBack A transaction is reversed

Artisan Commands

Command Description
inventorix:expire-reservations Release all reservations past their TTL
inventorix:prune-movements Delete movements older than movement_prune_after_days
inventorix:stock-report Generate a stock report

Schedule the expiry command in your application's scheduler:

Configuration Reference

Testing

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of inventorix with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/contracts Version ^11.0||^12.0
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 aldeebhasan/inventorix contains the following files

Loading the files please wait ...