Skip to content

Commit

Permalink
feat: add vendor files back temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
dr5hn committed Sep 2, 2024
1 parent ccd0e0c commit e255433
Show file tree
Hide file tree
Showing 4 changed files with 397 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ base.php
.idea
/bin/vendor/
composer.lock

scripts/vendor/data/*
scripts/vendor/vendor
34 changes: 34 additions & 0 deletions scripts/vendor/base.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php
ini_set('display_errors', 1);
ini_set('memory_limit', '-1');
ini_set('max_execution_time', 300);
ini_set('error_reporting', E_ALL & ~E_NOTICE);
date_default_timezone_set('Asia/Kolkata');

require_once __DIR__.'/vendor/autoload.php';

header('Content-type: text/plain');

$NUMBER_OF_SECONDS = 1;
$API_KEY = ''; // Your RapidApi GeoDBCities Api Key

$servername = "127.0.0.1";
$username = "root";
$password = "root";
$dbname = "world";
$port = 3306;

// Create connection
$conn = new mysqli($servername, $username, $password, $dbname, $port);

// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}

// change character set to utf8
if (!$conn->set_charset("utf8mb4")) {
printf("Error loading character set utf8: %s\n", $conn->error);
} else {
printf("Current character set: %s\n", $conn->character_set_name());
}
10 changes: 10 additions & 0 deletions scripts/vendor/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "dr5hn/csc-db",
"description": "Full Database of city state country available in JSON and SQL Format All Countries, States & Cities are Covered and Populated with Different Combinations & Versions.",
"version": "v0.2",
"require": {
"mashape/unirest-php": "^3.0",
"spatie/array-to-xml": "^3.0",
"symfony/yaml": "^6.0"
}
}
Loading

0 comments on commit e255433

Please sign in to comment.