Download the PHP package kaleidpixel/geoipallow without Composer

On this page you can find all versions of the php package kaleidpixel/geoipallow. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package geoipallow

Geo IP Allow

A streamlined tool designed to generate .htaccess configurations, allowing web access exclusively from IP addresses of a specified country. Enhance your site's security and target your audience more effectively.

Document

Coding is quite simple. The options are only simple, so you won't get lost.

Options

Option Description
server
default: apache
Apache or Nginx
ipv
default: 0
Specify the version of the IP Address with a single digit (4 or 6).
country
default: US
Specify the name of the country using the ISO code (Alpha-2 code) as defined in the ISO 3166 international standard.
output_path
default: empty
File path including the name of the file to output the results.
add_before_str
default: empty
.
add_after_str
default: empty
.

Methods

Method Parameter Description
read() bool $echo = false
bool $force = false
Create a list of IP addresses. If already created, cache it for one day.
delete() none Delete the IP address added with the read method.
ipListEndPoints() none Wrapper method for the constant IP_LIST_ENDPOINTS.
getCIDRRangeIPv4() int $range = 0 Calculate CIDR.
is_cli() none Check if the type of interface between the web server and PHP is CLI.
curl_get_content() string $url = ''
array $header = []
string $method = 'GET'
array $data = []
Retrieve the HTTP code and content of the specified URL.
download() string $file_path = ''
string $mime_type = null
Output the header in the web browser to download the file and initiate the file download.

Basic markup

What follows is the simplest coding.

Example 1

Example 2

The source code shown above will work on the built-in web server. It also operates in CLI, so choose whichever you prefer.

If you want to run it on the built-in web server, execute the command shown below and then access it with a web browser.

If you want to run it in CLI, execute the command shown below. The path where the file is outputted will be displayed as a result.

License

MIT License
Copyright (c) 2023 Kaleid Pixel


All versions of geoipallow with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3||^8.0
ext-intl Version *
ext-mbstring Version *
ext-curl Version *
ext-json Version *
ext-fileinfo Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package kaleidpixel/geoipallow contains the following files

Loading the files please wait ....