2017 © Pedro PelĆ”ez
 

composer srvant

Data structures and object wrappers for primitive data types

image

zuffik/srvant

Data structures and object wrappers for primitive data types

  • Tuesday, July 3, 2018
  • by zuffik
  • Repository
  • 1 Watchers
  • 0 Stars
  • 103 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 30 Versions
  • 66 % Grown

The README.md

ant, (*1)

srvant

srvant is your little but helpful package that improves PHP usability., (*2)


Donate, (*3)

Docs

Installation

simply..., (*4)

composer require zuffik/srvant

Usage

Structures

Lists:, (*5)

  • Array List
  • Linked List

Maps:, (*6)

  • Hash map

example:, (*7)

$list = new ArrayList();
$list->add(1, 2, 3, -1);
foreach($list as $item) {
    echo $item . "\n";
}
// And equivalent
$list->map(function($item) {
    echo $item . "\n";
    return $item;
})->filter(function($item) {
    return $item > 0;
});
// And many more

Full documentation available here., (*8)

String

Offers interface with string functions., (*9)

example:, (*10)

$str = string('Hallo world')
    ->replace('a', 'e')
    ->lowerCase()
    ->slugify()
    ->upperCase();
echo $str; // HELLO-WORLD

Full documentation available here., (*11)

Formats

  • CSV
  • JSON
  • Regex
  • URL

All of these offer a interface for work with certain data format., (*12)

example:, (*13)

$url = new URL('http://sub.example.com/index.php?action=page');
echo $url->getDomain(); // example
echo $url->getRequestedUrl(); // index.php

Full documentation available here., (*14)

There are planned many features in future., (*15)

Sources

As for mime types, this magic database is used, (*16)

Contribution

Contribution is simple. Make pull request with your new or edited code. It MUST follow PSR coding standards. For new feature provide also unit tests., (*17)

If you are satisfied with srvant, please donate. Thank you all. :), (*18)

Donate, (*19)

The Versions

03/07 2018

dev-master

9999999-dev

Data structures and object wrappers for primitive data types

  Sources   Download

MIT

The Development Requires

by KristiĆ”n Žuffa

03/07 2018

1.2.7

1.2.7.0

Data structures and object wrappers for primitive data types

  Sources   Download

MIT

The Development Requires

by KristiĆ”n Žuffa

03/07 2018

1.2.6

1.2.6.0

Data structures and object wrappers for primitive data types

  Sources   Download

MIT

The Development Requires

by KristiĆ”n Žuffa

01/07 2018

1.2.5

1.2.5.0

Data structures and object wrappers for primitive data types

  Sources   Download

MIT

The Development Requires

by KristiĆ”n Žuffa

22/05 2018

1.2.4

1.2.4.0

Data structures and object wrappers for primitive data types

  Sources   Download

MIT

The Development Requires

by KristiĆ”n Žuffa

26/04 2018

1.2.3

1.2.3.0

Data structures and object wrappers for primitive data types

  Sources   Download

MIT

The Development Requires

by KristiĆ”n Žuffa

25/04 2018

1.2.2

1.2.2.0

Data structures and object wrappers for primitive data types

  Sources   Download

MIT

The Development Requires

by KristiĆ”n Žuffa

21/03 2018

1.2.1

1.2.1.0

Data structures and object wrappers for primitive data types

  Sources   Download

MIT

The Development Requires

by KristiĆ”n Žuffa

16/03 2018

1.2.0

1.2.0.0

Data structures and object wrappers for primitive data types

  Sources   Download

MIT

The Development Requires

by KristiĆ”n Žuffa

11/03 2018

1.1.5

1.1.5.0

Data structures and object wrappers for primitive data types

  Sources   Download

MIT

The Development Requires

by KristiĆ”n Žuffa

05/02 2018

1.1.4

1.1.4.0

Data structures and object wrappers for primitive data types

  Sources   Download

MIT

The Development Requires

by KristiĆ”n Žuffa

05/02 2018

1.1.3

1.1.3.0

Data structures and object wrappers for primitive data types

  Sources   Download

MIT

The Development Requires

by KristiĆ”n Žuffa

31/01 2018

1.1.2

1.1.2.0

Data structures and object wrappers for primitive data types

  Sources   Download

MIT

The Development Requires

by KristiĆ”n Žuffa

31/01 2018

1.1.1

1.1.1.0

Data structures and object wrappers for primitive data types

  Sources   Download

MIT

The Development Requires

by KristiĆ”n Žuffa

29/01 2018

1.1.0

1.1.0.0

Data structures and object wrappers for primitive data types

  Sources   Download

MIT

The Development Requires

by KristiĆ”n Žuffa

29/01 2018

1.0.14

1.0.14.0

Data structures and object wrappers for primitive data types

  Sources   Download

MIT

The Development Requires

by KristiĆ”n Žuffa

26/01 2018

1.0.13

1.0.13.0

Data structures and object wrappers for primitive data types

  Sources   Download

MIT

The Development Requires

by KristiĆ”n Žuffa

25/01 2018

1.0.12

1.0.12.0

Data structures and object wrappers for primitive data types

  Sources   Download

MIT

The Development Requires

by KristiĆ”n Žuffa

23/01 2018

1.0.11

1.0.11.0

Data structures and object wrappers for primitive data types

  Sources   Download

MIT

The Development Requires

by KristiĆ”n Žuffa

12/01 2018

1.0.10

1.0.10.0

Data structures and object wrappers for primitive data types

  Sources   Download

MIT

The Development Requires

by KristiĆ”n Žuffa

12/01 2018

1.0.9

1.0.9.0

Data structures and object wrappers for primitive data types

  Sources   Download

MIT

The Development Requires

by KristiĆ”n Žuffa

12/01 2018

1.0.8

1.0.8.0

Data structures and object wrappers for primitive data types

  Sources   Download

MIT

The Development Requires

by KristiĆ”n Žuffa

11/01 2018

1.0.7

1.0.7.0

Data structures and object wrappers for primitive data types

  Sources   Download

MIT

The Development Requires

by KristiĆ”n Žuffa

11/01 2018

1.0.6

1.0.6.0

Data structures and object wrappers for primitive data types

  Sources   Download

MIT

The Development Requires

by KristiĆ”n Žuffa

04/01 2018

1.0.5

1.0.5.0

Data structures and object wrappers for primitive data types

  Sources   Download

MIT

The Development Requires

by KristiĆ”n Žuffa

02/01 2018

1.0.4

1.0.4.0

Data structures and object wrappers for primitive data types

  Sources   Download

MIT

The Development Requires

by KristiĆ”n Žuffa

01/01 2018

1.0.3

1.0.3.0

Data structures and object wrappers for primitive data types

  Sources   Download

MIT

The Development Requires

by KristiĆ”n Žuffa

31/12 2017

1.0.2

1.0.2.0

Data structures and object wrappers for primitive data types

  Sources   Download

MIT

The Development Requires

by KristiĆ”n Žuffa

31/12 2017

1.0.1

1.0.1.0

Data structures and object wrappers for primitive data types

  Sources   Download

MIT

The Development Requires

by KristiĆ”n Žuffa

31/12 2017

1.0.0

1.0.0.0

Data structures and object wrappers for primitive data types

  Sources   Download

MIT

The Development Requires

by KristiĆ”n Žuffa