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

  • Wednesday, January 31, 2018
  • by zuffik
  • Repository
  • 1 Watchers
  • 0 Stars
  • 28 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 19 Versions
  • 0 % 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)

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., (*16)

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

Donate, (*18)

The Versions

31/01 2018

dev-master

9999999-dev

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

We request your permission to obtain statistical data of your navigation on this website, in compliance with Royal Decree-Law 13/2012 (Spain). If you continue browsing, we consider that you accept the use of cookies. OK | More information