k-hasan/oop-php
Composer 安装命令:
composer require k-hasan/oop-php
包简介
Logging for PHP 7 OOP
README 文档
README
Object orient programming learning
Installation
command run into Terminal or Shell
composer require k-hasan/oop-php;
Or
Add below this code into composer.json file
{
"require": {
"k-hasan/oop-php":"dev-master"
}
}
command run into Terminal or Shell
composer install
Basic uses
add below this code into index.php file then run it.
require "vendor/autoload.php"; use Oop\Item\Product; use Oop\Stock; use Oop\Store; $product1 = new Product('Lux', 50, 'Toilet shopppp'); $product2 = new Product('Mariel', 40, 'Toilet shop'); $newProduct = new Product('Nim', 20, 'Toilet shop'); $gudam = new Stock([$product1, $product2]); $dhakaBazar = new Store($gudam); $dhakaBazar->requisition($newProduct); echo '<pre>'; print_r ($gudam);
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-04-22