Skip to content

Commit 568ee2d

Browse files
committed
Updated changelog + readme.
1 parent ae1d87c commit 568ee2d

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

changelog.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# Changelog
22

3-
Nothing to see. Move along!
3+
## 0.1.0
4+
5+
First release.

readme.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,32 @@
88

99
## Example
1010

11-
Nothing to see. Move along!
11+
```php
12+
use TypedPHP\Functions\TypeFunctions;
13+
14+
TypeFunctions\getType(1.5); // number
15+
16+
TypeFunctions\isBoolean(false); // true
17+
TypeFunctions\isBoolean("false"); // false
18+
```
19+
20+
Functions:
21+
22+
- `isNumber`
23+
- `isBoolean`
24+
- `isNull`
25+
- `isObject`
26+
- `isFunction`
27+
- `isExpression`
28+
- `isString`
29+
- `isResource`
30+
- `getType`
31+
32+
Caveats:
33+
34+
- `isExpression` will return false if `isString` returns true.
35+
- `isFunction` will return false if `isObject` returns true.
36+
- `getType` will return unknown if the argument is not matched by any of the `is*` functions.
1237

1338
## Installation
1439

0 commit comments

Comments
 (0)