Skip to Content

Functions

Client Options

This will return client options.

php
use AiosDashboard\App\Http\Request; $request = Request::client_options();

Client Feed

This will return client feed.

php
use AiosDashboard\App\Http\Request; $options = Request::client_options(); $placeholder = isset($options['placeholder']) ? wp_get_attachment_image_src($options['placeholder'], 'full') : ''; $request = Request::client_feed($options);

Formatting

Time lapse format

php
use AiosDashboard\Helpers\Format; Format::timeElapsedString($created_time);

Convert Number

Sample: 10,500 -> 10.5K

php
use AiosDashboard\Helpers\Format; Format::number_format_short($fan_count);
Last updated on