-
-
Notifications
You must be signed in to change notification settings - Fork 8
Provider
Jakiboy edited this page Apr 24, 2024
·
2 revisions
This document guide you on how to utilize the Apaapi static Provider.
To use Apaapi Provider, it needs to be imported into your project.
use Apaapi\includes\Provider;
The Apaapi Provider offers various methods to retrieve different types of static data.
$data = Provider::HOST; // Retrieve the host variable
$data = Provider::CONDITION; // Retrieve the condition filter
$data = Provider::SORT; // Retrieve the sort filter
$data = Provider::SHIPPING; // Retrieve the delivery filter
$data = Provider::getRegions(); // Retrieve all regions
$data = Provider::getRegion('com'); // Retrieve a specific region
$data = Provider::getCountries(); // Retrieve all countries
$data = Provider::getCountry('com'); // Retrieve a specific country
$data = Provider::getLocales(); // Retrieve all locales
$data = Provider::getLanguages(); // Retrieve all languages
$data = Provider::getLanguages('com'); // Retrieve languages for a specific region
$data = Provider::getCategories(); // Retrieve all categories
$data = Provider::getCategories('com'); // Retrieve categories for a specific region
$data = Provider::getCategoryId('Apps & Games', 'com'); // Retrieve the ID of a specific category in a specific region
$data = Provider::getSymbols(); // Retrieve all currency symbols
$data = Provider::getSymbol('USD'); // Retrieve a specific currency symbol