承接 phpdk/pdk 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

phpdk/pdk

Composer 安装命令:

composer require phpdk/pdk

包简介

php development kit

README 文档

README

wercker status

PHP Development Kit

more information in wiki

Lang (pdk\lang*)

Integer (pdk\lang\TInt)

      $int = new TInt(1);
      $int->getValue(); // return int 1 
      TInt::instanceof(1); //true
      TInt::instanceof(new TInt(1)); //true
      TInt::instanceof('1'); //false
      
      //compare
      $int = new TInt(5);
      static::assertTrue($int->equals(5));
      static::assertTrue($int->less(6));
      static::assertTrue($int->lessEquals(5));
      static::assertTrue($int->more(4));
      static::assertTrue($int->moreEquals(5));
      static::assertTrue($int->equals(new TInt(5)));
      static::assertTrue($int->less(new TInt(6)));
      static::assertTrue($int->lessEquals(new TInt(5)));
      static::assertTrue($int->more(new TInt(4)));
      static::assertTrue($int->moreEquals(new TInt(5)));
      static::assertFalse($int->equals('5'));
      static::assertFalse($int->equals(new TString('5')));

TString

       $string = new TString("hello world");
       [$hello, $world]  = $string->split(' ');

TArray

       $array = (new TArray(['1', '2', '3']))->map(function() {
             //foreach
       });

       $array = (new TArray(['1', '2', '3']))->filter(function() {
             //foreach
       });

Utils

Collection (pdk\util*)

TList

      $collection = new TList(A::class);
      $collection = TList::new(A::class, [...]);
      
      #scalar
      $list = new TList(TInt::class);
      $list->add(new TInt(0));
      $list->add(1);
      $list->add(2);

统计信息

  • 总下载量: 100
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-07-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固