We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02a8bc3 commit 1dbe717Copy full SHA for 1dbe717
CHANGELOG.md
@@ -1,3 +1,21 @@
1
+<a name="2.4.0"></a>
2
+# [2.4.0](https://github.com/atomastic/strings) (2020-12-05)
3
+* add copy() method.
4
+* add ability to extend Strings class with Macros.
5
+
6
+ ```php
7
+ use Atomastic\Strings\Strings;
8
+ use Atomastic\Macroable\Macroable;
9
10
+ Strings::macro('concatenate', function(string $string) {
11
+ return $this->toString() . $string;
12
+ });
13
14
+ $strings = new Strings('Hello');
15
16
+ echo $strings->concatenate(' World'));
17
+ ```
18
19
<a name="2.3.0"></a>
20
# [2.3.0](https://github.com/atomastic/strings) (2020-11-30)
21
* add replace() method.
0 commit comments