Skip to content

Commit caa27d4

Browse files
author
James Wigger
committed
Added packages to readme
1 parent 6316aac commit caa27d4

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

README.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,33 @@ Variables can also be checked with:
7979

8080
**Perch**
8181

82-
Migrating a static site to Perch is simply a matter of replacing `base_` with `perch_` on each of the above functions. This is deliberate to reduce the time spent converting files to use Perch's template system.
82+
Migrating a static site to Perch is simply a matter of replacing `base_` with `perch_` on each of the above functions. This is deliberate to reduce the time spent converting files to use Perch's template system.
83+
84+
## Included Packages
85+
Included are useful libraries for handling strings and dates:
86+
87+
### Carbon
88+
89+
Date and time manipulations made easy:
90+
91+
```php
92+
use Carbon\Carbon;
93+
94+
Carbon::now()->addMonths(2)->format('d/m/Y');
95+
```
96+
97+
View Documentation: [http://carbon.nesbot.com/docs/](http://carbon.nesbot.com/docs/)
98+
99+
### Stringy
100+
101+
Advanced string manipulation and utilities. Makes checking for strings and modifying format very simple:
102+
103+
```php
104+
use Stringy\Stringy as Stringy;
105+
106+
if(Stringy::create('Tom Bradley ordered 6 Products')->contains('Tom Bradley')) {
107+
echo 'Alert Lydia!';
108+
}
109+
```
110+
111+
View Documentation: [https://github.com/danielstjules/Stringy](https://github.com/danielstjules/Stringy)

0 commit comments

Comments
 (0)