abbassmortazavi/inventory-library
最新稳定版本:1.0
Composer 安装命令:
composer require abbassmortazavi/inventory-library
包简介
A simple inventory management library.
README 文档
README
Package Instruction
Installation
# Inventory Library A simple PHP library for managing an inventory of items. ## Installation Install via Composer: composer require abbassmortazavi/inventory-library
Sample Code For Use it In Your Project
use InventoryLibrary\Inventory; require 'vendor/autoload.php'; $inventory = new Inventory(); // Add items $inventory->addItem('orange', 20); $inventory->addItem('peach', 5); // Remove items $inventory->removeItem('orange', 5); // Get stock echo $inventory->getStock('orange'); // Output: 15 echo $inventory->getStock('peach'); // Output: 5
Run Unit Tests
run this command in your command line : vendor/bin/phpunit
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-06-21