eseath / sypexgeo Goto Github PK
View Code? Open in Web Editor NEWUnofficial PHP package for working with the IPs database file by SypexGeo. Supports Laravel 5.1 and later.
Unofficial PHP package for working with the IPs database file by SypexGeo. Supports Laravel 5.1 and later.
like $sxGeo->getCountryFull
curl_error(): supplied resource is not a valid cURL handle resource
...\vendor\eseath\sypexgeo\src\Commands\SxGeoUpdate.php:173
Windows 10
curl_close($ch);
if (!$result) {
$this->error('Download failed: ' . curl_error($ch));
return;
}
in \src\Commands\SxGeoUpdate.php:173
curl should be closed after curl_error
I am getting above error
Error: Deprecate curly brace syntax for accessing array elements and string offsets
.../eseath/sypexgeo/src/SxGeo.php:221
Classpath loading not working when --classmap-authoritative
is enabled, which means library cannot be used as dependency when https://getcomposer.org/doc/articles/autoloader-optimization.md#optimization-level-2-a-authoritative-class-maps is enabled.
composer.json
{
"name": "test/sypexgeo",
"type": "project",
"require": {
"eseath/sypexgeo": "^2.3"
}
}
test.php
<?php
use Eseath\SxGeo\SxGeo;
require_once __DIR__ . '/vendor/autoload.php';
new SxGeo('test.db', SXGEO_BATCH | SXGEO_MEMORY);
composer install
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Package operations: 9 installs, 0 updates, 0 removals
- Installing symfony/deprecation-contracts (v3.3.0): Extracting archive
- Installing psr/http-message (2.0): Extracting archive
- Installing psr/http-client (1.0.3): Extracting archive
- Installing ralouphie/getallheaders (3.0.3): Extracting archive
- Installing psr/http-factory (1.0.2): Extracting archive
- Installing guzzlehttp/psr7 (2.6.1): Extracting archive
- Installing guzzlehttp/promises (2.0.1): Extracting archive
- Installing guzzlehttp/guzzle (7.8.0): Extracting archive
- Installing eseath/sypexgeo (v2.3.1): Extracting archive
Generating autoload files
4 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Run test script -- runs without any issue.
--classmap-authoritative
:composer --classmap-authoritative install
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Package operations: 9 installs, 0 updates, 0 removals
- Installing symfony/deprecation-contracts (v3.3.0): Extracting archive
- Installing psr/http-message (2.0): Extracting archive
- Installing psr/http-client (1.0.3): Extracting archive
- Installing ralouphie/getallheaders (3.0.3): Extracting archive
- Installing psr/http-factory (1.0.2): Extracting archive
- Installing guzzlehttp/psr7 (2.6.1): Extracting archive
- Installing guzzlehttp/promises (2.0.1): Extracting archive
- Installing guzzlehttp/guzzle (7.8.0): Extracting archive
- Installing eseath/sypexgeo (v2.3.1): Extracting archive
Generating optimized autoload files
4 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Run test script -- DatabaseType cannot be autoloaded from classmap:
PHP Fatal error: Uncaught Error: Class "Eseath\SxGeo\DatabaseType" not found in /sandbox/sypexgeo/vendor/eseath/sypexgeo/src/SxGeo.php:25
Stack trace:
#0 {main}
thrown in /sandbox/sypexgeo/vendor/eseath/sypexgeo/src/SxGeo.php on line 25
Fatal error: Uncaught Error: Class "Eseath\SxGeo\DatabaseType" not found in /sandbox/sypexgeo/vendor/eseath/sypexgeo/src/SxGeo.php:25
Stack trace:
#0 {main}
thrown in /sandbox/sypexgeo/vendor/eseath/sypexgeo/src/SxGeo.php on line 25
Env:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.