Skip to content

Commit b9b64d2

Browse files
committed
Fix LICENSE.md, README.md and composer.json
1 parent a76cb7a commit b9b64d2

3 files changed

Lines changed: 22 additions & 48 deletions

File tree

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) Hadi Akbarzadeh info@elatel.ir
3+
Copyright (c) 2024 Hadi Akbarzadeh <https://elatel.ir>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 6 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Stringer (String Helper for PHP)
1+
# Arrayer (Array Helper for PHP)
22

33
> An array helper for PHP. It includes some useful methods and possibly other features.
44
@@ -19,26 +19,24 @@ composer require nabeghe/arrayer
1919

2020
<hr>
2121

22-
### Str Class
22+
### Arr Class
2323

24-
The main class that includes the useful methods is `Nabegh\String\Arr`.
24+
The main class that includes the useful methods is `Nabegh\Arrayer\Arr`.
2525

2626
#### Example:
2727

2828
```php
29-
use Nabeghe\Stringer\Arr;
30-
31-
use Nabeghe\Arrayer\Arr;
29+
use Nabeghe\Arrayer\Arrayer;
3230

3331
$data1 = ['key_1' => 'value_1', 'key_3' => ['key_3_1' => 'value_3_1']];
3432

3533
$data2 = ['key_2' => 'value_2'];
3634

3735
$data3 = ['key_3' => ['key_3_2' => 'value_3_2']];
3836

39-
$merged = Arr::merge($data1, $data2, $data3);
37+
$arrayer = new Arrayer();
4038

41-
print_r($merged);
39+
print_r($arrayer->merge($data1, $data2, $data3)->data);
4240

4341
/*
4442
Array
@@ -59,46 +57,14 @@ print_r($merged);
5957

6058
### Arrayer Class
6159

62-
An array class.
63-
6460
Accepts any value, converts it to an array via `Arr::cast`, stores it, and returns it via `data` property.
6561

6662
It is possible to access the methods of the `Arr` class through the `Arrayer` object as well, with the difference that the main array parameter is no longer present.
6763

6864
Additionally, the `ArrayAccess` and `JsonSerializable` interfaces have also been implemented on `Arrayer` class.
6965

70-
```php
71-
use Nabeghe\Arrayer\Arrayer;
72-
73-
$data1 = ['key_1' => 'value_1', 'key_3' => ['key_3_1' => 'value_3_1']];
74-
75-
$data2 = ['key_2' => 'value_2'];
76-
77-
$data3 = ['key_3' => ['key_3_2' => 'value_3_2']];
78-
79-
$arrayer = new Arrayer();
80-
81-
print_r($arrayer->merge($data1, $data2, $data3)->data);
82-
83-
/*
84-
Array
85-
(
86-
[key_1] => value_1
87-
[key_3] => Array
88-
(
89-
[key_3_1] => value_3_1
90-
[key_3_2] => value_3_2
91-
)
92-
93-
[key_2] => value_2
94-
)
95-
*/
96-
```
97-
9866
<hr>
9967

10068
## 📖 License
10169

102-
Copyright (c) 2024 Hadi Akbarzadeh
103-
10470
Licensed under the MIT license, see [LICENSE.md](LICENSE.md) for details.

composer.json

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,30 @@
22
"name": "nabeghe/arrayer",
33
"description": "An array helper for PHP. It includes some useful methods and possibly other features.",
44
"keywords": [
5-
"array", "array helper", "array utils", "array merge", "library", "helper", "support"
5+
"array",
6+
"array helper",
7+
"array utils",
8+
"array merge",
9+
"library",
10+
"helper",
11+
"support"
612
],
713
"type": "library",
814
"homepage": "https://github.com/nabeghe/arrayer-php",
915
"license": "MIT",
10-
"autoload": {
11-
"psr-4": {
12-
"Nabeghe\\Arrayer\\": "src/"
13-
}
14-
},
1516
"authors": [
1617
{
1718
"name": "Hadi Akbarzadeh",
18-
"email": "hadicoder@gmail.com"
19+
"email": "elsiomcoder@gmail.com",
20+
"homepage": "https://elatel.ir",
21+
"role": "Developer"
1922
}
2023
],
24+
"autoload": {
25+
"psr-4": {
26+
"Nabeghe\\Arrayer\\": "src/"
27+
}
28+
},
2129
"require": {
2230
"php": ">=7.4",
2331
"ext-json": "*",

0 commit comments

Comments
 (0)