Skip to content

Releases: paragrafid/php-kit

v0.1.1

05 Jan 06:05

Choose a tag to compare

The collection should be able to be cast as a string.

use Paragraf\Kit\Collection;

(string) new Collection([1, 2, 3]);
// "[1,2,3]"

(string) new Collection([
    'foo' => 123,
    'bar' => [4, 5, 6],
    'baz' => [
        'foo' => '1',
    ],
]);
// "{"foo":123,"bar":[4,5,6],"baz":{"foo":"1"}}"

Full Changelog: v0.1.0...v0.1.1

v0.1.0

04 Jan 12:22

Choose a tag to compare

Continuous improvements are better than delayed perfection.

This library comes with 2 usable classes:

  • Paragraf\Kit\Convertion::class
  • Paragraf\Kit\Collection::class

The docs will go after. Meanwhile, you can find the examples inside the tests folder.