定制 k-hasan/oop-php 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-04-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固