Download the PHP package jiangyong/address-fence without Composer

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

address-fence

a address-fence APi.

安装

配置

在使用本扩展之前,请先熟悉配置相关
1.配置默认的模型字段'lngMin','lngMax','latMin','latMax'
2.当然你也可以自己配置字段
  首先在config/services.php中
  添加以下
  'addressFence' => [
          'lngMin' => env('ADDRESS_LNGMIN'),
          'lngMax' => env('ADDRESS_LNGMAX'),
          'latMin' => env('ADDRESS_LATMIN'),
          'latMax' => env('ADDRESS_LATMAX'),
          ]
  然后在.env文件中配置你自己的数据表字段名
  ADDRESS_LNGMIN=
  ADDRESS_LNGMAX=
  ADDRESS_LATMIN=
  ADDRESS_LATMAX=

使用

在需要的控制器中添加
use Jiangyong\AddressFence\addressFence;
然后调用
在方法中注入实力类,写法如下:
public function Demo(addressFence $addressFence)
{
    /*
    *参数 $areaFence就是你输入的围栏地址
    *方法返回一个长方形的两个最大最小的xy点
    */
    $addressFence->returnPointOfAddressFence($areaFence)

}

在模型中通过调用获取数据库中可行的围栏区域
在你需要的模型中
use Jiangyong\AddressFence\Traits;
在模型类中调用即可
class model_name extends model
{
    use Traits\AddressScope;
}
然后在你的控制器中直接返回长方形区域
public functiong demoText(Model $model)
{
    /**
    *   $polygon就是你地址围栏获得的长方形区域最大最小的xy点
    */
    Model::returnFeasibleFenceArea($polygon)->get()
}
最后通过调用返回最后可行的地址围栏数据
public funtion demoTest(addressFence $addressFence)
{   
    /**
    * $area 为返回的长方形区域
    * $point 输入的一个具体的点
    /
    $addressFence->returnFinalArea($area,$point);
}

TODO

Contributing

You can contribute in one of three ways:

  1. File bug reports using the issue tracker.
  2. Answer questions or fix bugs on the issue tracker.
  3. Contribute new features or update the wiki.

The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.

License

MIT


All versions of address-fence with dependencies

PHP Build Version
Package Version
Requires phpunit/phpunit Version ^7.0
jiangyong/address-fence Version ^1.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 jiangyong/address-fence contains the following files

Loading the files please wait ...