Download the PHP package larryli/ipv4-yii2 without Composer

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

IPv4 Yii2 组件

通过 composer 安装

配置 ipv4 组件和命令

别名

可以在 文件先定义一个别名:

组件

在 中增加:

其中:

命令

在 数组中增加 配置内容:

使用:

可以查看 ipv4 命令列表。

数据库迁移

复制数据库迁移脚本到当前 下:

或者参见此页面的说明使用其他的方式处理。

然后,执行迁移:

初始化

查询

杂项

注意: 命令会耗费大量内存,请配置 PHP 至少为 或更多。

代码调用

使用组件

使用模型

仅支持生成的数据库 查询。

使用 yii2 模型可以不需要配置 ipv4 组件,但必须先使用 ipv4 组件生成好相关数据库。

也就是说,可以只在 console 应用中配置 ipv4 组件;然后在 web 应用中配置 ipv4 组件直接使用相关模型。

Division 模型

使用 静态方法可以重载掉父类中调用组件查询 的代码。

Full/Mini/China/World 模型

使用 静态方法可以重载掉 父类中调用组件查询 的代码。

仅需要声明所需使用的查询模型即可。

查询:

相关包


All versions of ipv4-yii2 with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
larryli/ipv4 Version ~1.0
yiisoft/yii2 Version ~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 larryli/ipv4-yii2 contains the following files

Loading the files please wait ....