PHP code example of tamedevelopers / support
1. Go to this page and download the library: Download tamedevelopers/support library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tamedevelopers / support example snippets
$platform = Tame()->platformIcon('windows');
// Output: /path/to/icons/platform/windows.svg
$payment = Tame()->paymentIcon('paypal');
// Output: /path/to/icons/payment/paypal.svg
Tame()->fileTime(base_path('filepath.php'));
Tame()->exists(base_path('filepath.php'));
// Output: true or false
$time->now()->format()
$time->today();
$time->yesterday();
$time->timestamp('24 Jan 2025 14:00:00');
// Output: 2025-01-24 14:00:00
$time->toJsTimer('24 Jan 2025 14:00:00');
$time->jsTimer('24 Jan 2025 14:00:00');
// Output: Jan 24, 2025 14:00:00
$time->date('today')->ago()
$time->date('today')->timeAgo()
// Output: [
"full" => "4 hours ago"
"short" => "4h"
"duration" => 4
"time" => 1737752400
"date" => "24 Jan, 2025"
"date_time" => "24 Jan, 2025 10:01am"
"time_stamp" => "Jan 24, 2025 10:00:00"
]
TameCookie()->set('user', '__user');
Asset::config('storage', false);
- Returns
http://domain.com/storage/[asset_file]