2017 © Pedro Peláez
 

library pdk

php development kit

image

phpdk/pdk

php development kit

  • Sunday, March 11, 2018
  • by dimajolkin
  • Repository
  • 1 Watchers
  • 0 Stars
  • 57 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 43 % Grown

The README.md

wercker status, (*1)

PHP Development Kit

more information in wiki, (*2)

Lang (pdk\lang*)

Integer (pdk\lang\TInt)

```php $int = new TInt(1); $int->getValue(); // return int 1 TInt::instanceof(1); //true TInt::instanceof(new TInt(1)); //true TInt::instanceof('1'); //false, (*3)

   //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

```php
       $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);

The Versions

11/03 2018

dev-master

9999999-dev

php development kit

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

by Avatar Dima

php development kit

12/07 2017

0.1

0.1.0.0

php development kit

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

by Avatar Dima

php development kit