PHPackages                             bajomodavid/product-inventory-bundle - 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. [Database &amp; ORM](/categories/database)
4. /
5. bajomodavid/product-inventory-bundle

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

bajomodavid/product-inventory-bundle
====================================

Symfony bundle to handle product inventory and manage stock

043PHP

Since Sep 2Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Bajomodavid/product-inventory-bundle)[ Packagist](https://packagist.org/packages/bajomodavid/product-inventory-bundle)[ RSS](/packages/bajomodavid-product-inventory-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

product-inventory-bundle
========================

[](#product-inventory-bundle)

Installation
============

[](#installation)

Make sure Composer is installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

Applications that use Symfony Flex
----------------------------------

[](#applications-that-use-symfony-flex)

Open a command console, enter your project directory and execute:

```
$ composer require bajomodavid/product-inventory-bundle
```

Applications that don't use Symfony Flex
----------------------------------------

[](#applications-that-dont-use-symfony-flex)

### Step 1: Download the Bundle

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require bajomodavid/product-inventory-bundle
```

### Step 2: Enable the Bundle

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `config/bundles.php` file of your project:

```
// config/bundles.php

return [
    // ...
    BajomoDavid\ProductInventoryBundle\ProductInventoryBundle::class => ['all' => true],
];
```

\###Step 3: Create migration Then, create migration files by running

```
php bin/console make:migration
```

\###Step 4: Run migrations Then run migrations with

```
php bin/console doctrine:migrations:migrate
```

Usage
=====

[](#usage)

### Import Stock Data

[](#import-stock-data)

To import csv record of stock data, run the command below

```
 php bin/console inventory:import-stock path/to/csv-file
```

e.g

```
php bin/console inventory:import-stock public/test-stock-file.csv
```

#### Note: The file path is relative to the project directory

[](#note-the-file-path-is-relative-to-the-project-directory)

#### Import record from post request

[](#import-record-from-post-request)

Send a post request to the app with the following parameters

```
    $headers = array(
        array('x-action' => 'inventory-import'),
        ....Other headers
    );
    $body = array(
        'sku' => (string) $sku,
        'branch' => (string) $branch,
        'stock' => (int) $stock
    );
```

The record will be added if it does not exist, else it will be updated

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2953e95c8127aef4cc8630bec02f51e981e9e21502adf0830b77782b8b3b5c1f?d=identicon)[bajomodavid](/maintainers/bajomodavid)

---

Top Contributors

[![Bajomodavid](https://avatars.githubusercontent.com/u/51506268?v=4)](https://github.com/Bajomodavid "Bajomodavid (80 commits)")

### Embed Badge

![Health badge](/badges/bajomodavid-product-inventory-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/bajomodavid-product-inventory-bundle/health.svg)](https://phpackages.com/packages/bajomodavid-product-inventory-bundle)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.3k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M543](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M209](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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