Download the PHP package mileschou/twnicip without Composer

On this page you can find all versions of the php package mileschou/twnicip. 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 twnicip

Twnic IP

tests codecov Codacy Badge Latest Stable Version Total Downloads License

檢查是否為台灣 IP 的小工具。

台灣 IP 沒想像中多,這個工具是直接把找到的資料轉成 PHP 原生變數型態的「Facade 做搜尋。

原始 Database 是不能修改的,只能靠原 repo 更新,而 Facade 層則是可以動態標記 IP 是否為台灣 IP。

Version

Installation

透過 Composer 即可安裝:

Usage

這是主要驗證 IP 來源的 class,使用下面三個方法來確認是否是台灣 IP:

如果有新加入的 IP,但原始 repo 沒有更新時,可以自行新增:

同理,如果某個區段的 IP 需要被排除時,也可以自行處理:

私有網域狹義來說,並不屬於台灣的 IP。而實務上,機器在台灣,某種程度也是算台灣的 IP 啦!

如果想把私有網域當作台灣 IP 的話,可以額外呼叫下面這個方法:

裡面其實只是呼叫 includeRange() 把私有 IP 的 range 加入。

References

License

The MIT License (MIT). Please see License File for more information.


All versions of twnicip with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
mileschou/ip Version ^0.2.0
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 mileschou/twnicip contains the following files

Loading the files please wait ....