Cleanup packages

This commit is contained in:
DariusIII
2026-04-14 11:00:01 +02:00
parent 916487e407
commit 3b78ea0a6e
16 changed files with 448 additions and 2885 deletions
-2
View File
@@ -2,7 +2,6 @@
use App\Facades\Elasticsearch;
use App\Facades\Yenc;
use Creativeorange\Gravatar\Facades\Gravatar;
use Illuminate\Support\Facades\Facade;
use Illuminate\Support\Facades\Redis;
@@ -27,7 +26,6 @@ return [
'aliases' => Facade::defaultAliases()->merge([
'Elasticsearch' => Elasticsearch::class,
'Google2FA' => PragmaRX\Google2FALaravel\Facade::class,
'Gravatar' => Gravatar::class,
'RedisManager' => Redis::class,
'Yenc' => Yenc::class,
])->toArray(),
+7 -1
View File
@@ -3,6 +3,12 @@
use Illuminate\Support\Str;
use PDO\MYSQL;
$redisClient = env('REDIS_CLIENT', 'phpredis');
if ($redisClient === 'predis' && ! class_exists('Predis\\Client')) {
$redisClient = 'phpredis';
}
return [
'default' => env('DB_CONNECTION', 'mysql'),
@@ -75,7 +81,7 @@ return [
],
'redis' => [
'client' => env('REDIS_CLIENT', 'phpredis'),
'client' => $redisClient,
'options' => [
'cluster' => env('REDIS_CLUSTER', 'redis'),
'prefix' => Str::slug(env('APP_NAME', 'laravel'), '_').'_database_',
-172
View File
@@ -1,172 +0,0 @@
<?php
use Torann\GeoIP\Services\IPApi;
use Torann\GeoIP\Services\IPData;
use Torann\GeoIP\Services\IPFinder;
use Torann\GeoIP\Services\IPGeoLocation;
use Torann\GeoIP\Services\MaxMindDatabase;
use Torann\GeoIP\Services\MaxMindWebService;
return [
/*
|--------------------------------------------------------------------------
| Logging Configuration
|--------------------------------------------------------------------------
|
| Here you may configure the log settings for when a location is not found
| for the IP provided.
|
*/
'log_failures' => true,
/*
|--------------------------------------------------------------------------
| Include Currency in Results
|--------------------------------------------------------------------------
|
| When enabled the system will do it's best in deciding the user's currency
| by matching their ISO code to a preset list of currencies.
|
*/
'include_currency' => true,
/*
|--------------------------------------------------------------------------
| Default Service
|--------------------------------------------------------------------------
|
| Here you may specify the default storage driver that should be used
| by the framework.
|
| Supported: "maxmind_database", "maxmind_api", "ipapi"
|
*/
'service' => 'ipapi',
/*
|--------------------------------------------------------------------------
| Storage Specific Configuration
|--------------------------------------------------------------------------
|
| Here you may configure as many storage drivers as you wish.
|
*/
'services' => [
'maxmind_database' => [
'class' => MaxMindDatabase::class,
'database_path' => storage_path('app/geoip.mmdb'),
'update_url' => 'https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz',
'locales' => ['en'],
],
'maxmind_api' => [
'class' => MaxMindWebService::class,
'user_id' => env('MAXMIND_USER_ID'),
'license_key' => env('MAXMIND_LICENSE_KEY'),
'locales' => ['en'],
],
'ipapi' => [
'class' => IPApi::class,
'secure' => true,
'key' => env('IPAPI_KEY'),
'continent_path' => storage_path('app/continents.json'),
'lang' => 'en',
],
'ipgeolocation' => [
'class' => IPGeoLocation::class,
'secure' => true,
'key' => env('IPGEOLOCATION_KEY'),
'continent_path' => storage_path('app/continents.json'),
'lang' => 'en',
],
'ipdata' => [
'class' => IPData::class,
'key' => env('IPDATA_API_KEY'),
'secure' => true,
],
'ipfinder' => [
'class' => IPFinder::class,
'key' => env('IPFINDER_API_KEY'),
'secure' => true,
'locales' => ['en'],
],
],
/*
|--------------------------------------------------------------------------
| Default Cache Driver
|--------------------------------------------------------------------------
|
| Here you may specify the type of caching that should be used
| by the package.
|
| Options:
|
| all - All location are cached
| some - Cache only the requesting user
| none - Disable cached
|
*/
'cache' => 'all',
/*
|--------------------------------------------------------------------------
| Cache Tags
|--------------------------------------------------------------------------
|
| Cache tags are not supported when using the file or database cache
| drivers in Laravel. This is done so that only locations can be cleared.
|
*/
'cache_tags' => ['torann-geoip-location'],
/*
|--------------------------------------------------------------------------
| Cache Expiration
|--------------------------------------------------------------------------
|
| Define how long cached location are valid.
|
*/
'cache_expires' => 30,
/*
|--------------------------------------------------------------------------
| Default Location
|--------------------------------------------------------------------------
|
| Return when a location is not found.
|
*/
'default_location' => [
'ip' => '127.0.0.0',
'iso_code' => 'US',
'country' => 'United States',
'city' => 'New Haven',
'state' => 'CT',
'state_name' => 'Connecticut',
'postal_code' => '06510',
'lat' => 41.31,
'lon' => -72.92,
'timezone' => 'America/New_York',
'continent' => 'NA',
'default' => true,
'currency' => 'USD',
],
];
-34
View File
@@ -1,34 +0,0 @@
<?php
return [
'default' => [
// By default, images are presented at 80px by 80px if no size parameter is supplied.
// You may request a specific image size, which will be dynamically delivered from Gravatar
// by passing a single pixel dimension (since the images are square):
'size' => 80,
// the fallback image, can be a string or a url
// for more info, visit: https://docs.gravatar.com/api/avatars/images/#default-image
'fallback' => 'mp',
// would you like to return a https://... image
'secure' => false,
// Gravatar allows users to self-rate their images so that they can indicate if an image
// is appropriate for a certain audience. By default, only 'G' rated images are displayed
// unless you indicate that you would like to see higher ratings.
// Available options:
// g: suitable for display on all websites with any audience type.
// pg: may contain rude gestures, provocatively dressed individuals, the lesser swear words, or mild violence.
// r: may contain such things as harsh profanity, intense violence, nudity, or hard drug use.
// x: may contain hardcore sexual imagery or extremely disturbing violence.
'maximumRating' => 'g',
// If for some reason you wanted to force the default image to always load, you can do that setting this to true
'forceDefault' => false,
// If you require a file-type extension (some places do) then you may also add an (optional) .jpg extension to that URL
'forceExtension' => 'jpg',
],
];