Skip to content

Commit

Permalink
Rename easy collection package to collection
Browse files Browse the repository at this point in the history
  • Loading branch information
andyexeter committed Aug 13, 2023
1 parent 23144b0 commit d5206bc
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ composer require palmtree/easy-collection
Collections can be used just like arrays for the most part. They implement [`ArrayAccess`](https://www.php.net/manual/en/class.arrayaccess), [`Traversable`](https://www.php.net/manual/en/class.traversable) and [`Countable`](https://www.php.net/manual/en/class.countable):

```php
use function Palmtree\EasyCollection\c;
use function Palmtree\Collection\c;

$collection = c(['foo' => 'bar', 'baz' => 'qux']);

Expand All @@ -45,7 +45,7 @@ $quxCollection = $collection->filter(fn ($v) => $v === 'qux');
```

```php
use function Palmtree\EasyCollection\c;
use function Palmtree\Collection\c;

$collection = c([1, 9, 5, 3, 7, 10])
->sort()
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "palmtree/easy-collection",
"name": "palmtree/collection",
"description": "Immutable collections which provide commonly used functionality missing from arrays",
"type": "library",
"license": "MIT",
Expand All @@ -15,7 +15,7 @@
},
"autoload": {
"psr-4": {
"Palmtree\\EasyCollection\\": "src"
"Palmtree\\Collection\\": "src"
},
"files": [
"functions.php"
Expand All @@ -28,7 +28,7 @@
},
"autoload-dev": {
"psr-4": {
"Palmtree\\EasyCollection\\Test\\": "tests"
"Palmtree\\Collection\\Test\\": "tests"
}
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Palmtree\EasyCollection;
namespace Palmtree\Collection;

/**
* @template TKey of array-key
Expand Down
2 changes: 1 addition & 1 deletion src/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Palmtree\EasyCollection;
namespace Palmtree\Collection;

/**
* @template TKey of array-key
Expand Down
6 changes: 3 additions & 3 deletions tests/CollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

declare(strict_types=1);

namespace Palmtree\EasyCollection\Test;
namespace Palmtree\Collection\Test;

use function Palmtree\EasyCollection\c;
use function Palmtree\Collection\c;

use Palmtree\EasyCollection\Collection;
use Palmtree\Collection\Collection;
use PHPUnit\Framework\TestCase;

class CollectionTest extends TestCase
Expand Down

0 comments on commit d5206bc

Please sign in to comment.