Download the PHP package siganushka/region-bundle without Composer

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

Region bundle for symfony

Build Status Latest Stable Version Latest Unstable Version License

国内行政区划(省、市、区、乡/街道联动) Bundle,数据来源 Administrative-divisions-of-China

安装

使用

更新数据库映射信息:

更新行政区划数据源:

默认仅导入省、市、区三级,可使用 --with-street 参数导入乡/街道四级。

导入路由:

导入后可通过 php bin/console debug:route 查看已导入路由。

Twig(可选)

导出前端资源到项目:

页面中引用前端资源:

main.js 依赖 fetch API,如果你的浏览器不支持,请使用 fetch polyfill

示例

例如用户地址实体,包含省、市、区、乡/街道四级联动:

为保证此 bundle 的独立、可复用性,你的实体关联到 Region::class 时必需为单向关系,不要指定 inversedBy 参数。

表单类型:

表单选项 cascader_target 指定了此字段联动的下一级字段,不管是三级还是四级,只需要指定该参数即可,此功能在 main.js 中实现,如果你需要自己实现联动,则不需要导入 main.js


All versions of region-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
doctrine/doctrine-bundle Version ^2.8
doctrine/orm Version ^2.11
siganushka/doctrine-contracts Version ^0.1
siganushka/generic-bundle Version ^0.6
symfony/form Version ^5.4|^6.0
symfony/framework-bundle Version ^5.4|^6.0
symfony/http-client Version ^5.4|^6.0
symfony/serializer Version ^5.4|^6.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 siganushka/region-bundle contains the following files

Loading the files please wait ....