Skip to content

Commit f298f38

Browse files
readme update
1 parent d65a92d commit f298f38

File tree

1 file changed

+22
-7
lines changed

1 file changed

+22
-7
lines changed

README.md

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -252,15 +252,13 @@ Tame()->emailValidator('[email protected]', true, true);
252252
// Output: true or false (Valid format with domain and server verification)
253253
```
254254

255-
### platformIcon
256-
257255
### platformIcon
258256
- Returns the path to the SVG icon for the specified platform or operating system.
259257

260-
| Params |Description |
258+
| Params |Description |
261259
|--------------|-----------------------------|
262-
| `$platform` | Platform name (e.g., `'windows'`, `'linux'`, `android`, `'iphone'`, `'mac'`, etc.) |
263-
| `$os_name` | OS name (e.g., `'macos'`, `'os x'`, `'ios'`) |
260+
| `$platform` | Platform name `[windows|linux|android|mobile|phone|unknown|mac|macintosh|ios|iphone|c|os x]` |
261+
| `$os_name` | OS name `'macos'`, `'os x'`, `'ios'` |
264262

265263
#### Example
266264

@@ -271,6 +269,23 @@ $platform = Tame()->platformIcon('windows');
271269
include $platform;
272270
```
273271

272+
### paymentIcon
273+
- Retrieves the path to the SVG icon for a specified payment method.
274+
275+
| Params | Description |
276+
|-------------|---------------------------------------------------------------------------------------------------------------------------|
277+
| `$payment` | `[add-money|alipay|bank|cc|credit-card|discover|faster-pay|groupbuy|maestro|mastercard]`
278+
`[pay|payme|payment-card|payment-wallet|paypal|stripe-circle|tripe-sqaure|stripe|visa]` |
279+
280+
#### Example
281+
282+
```php
283+
$platform = Tame()->paymentIcon('paypal');
284+
// Output: /path/to/icons/payment/paypal.svg
285+
286+
include $platform;
287+
```
288+
274289
### calPercentageBetweenNumbers
275290
- Calculates the percentage relationship between two numbers as an - `int`
276291

@@ -371,7 +386,7 @@ Visit the Tests/ folder to see more examples.
371386
| set() | Used to set cookie |
372387
| get() | Used to get cookie |
373388
| forget() | Used to expire cookie |
374-
| exire() | Same as `forget` method |
389+
| expire() | Same as `forget` method |
375390
| all() | Get all available cookie |
376391
| has() | Cookie exists |
377392

@@ -497,7 +512,7 @@ http://domain.com/storage/[asset_file]
497512

498513
- or -- `Helpers Function`
499514
```
500-
asset_config('storage');
515+
asset_config('storage', true);
501516
502517
http://domain.com/storage/[asset_file]?v=111111111
503518
```

0 commit comments

Comments
 (0)