This commit is contained in:
2025-10-22 20:08:22 +05:00
commit 736e3bef18
2573 changed files with 120385 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
<?php
use App\Modules\IpStack\Repositories\IpStackRepository;
/**
* Check if a client IP is in our Server subnet
*/
function isLocalIp(string $ip = ''): bool
{
return IpStackRepository::isLocalIp($ip);
}
/**
* Get country code from ip
*/
function getCountryCodeFromIp(?string $ip = ''): string
{
return IpStackRepository::getCountryCodeFromIp($ip);
}